/*!********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/styles/globals.css ***!
  \********************************************************************************************************************************************************************************************************************************************************************/
@tailwind base;
@tailwind components;
@tailwind utilities;

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Rajdhani:wght@600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --gov-blue: #003399;
  --gov-dark: #00204a;
  --gov-green: #009c3b;
  --gov-yellow: #ffdf00;

  /* Light mode (default) */
  --bg-primary: #f0f2f5;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-overlay: rgba(240, 242, 245, 0.94);
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --bg-overlay: rgba(15, 23, 42, 0.96);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: #334155;
  --shadow-color: rgba(0, 0, 0, 0.4);
}

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

code, .monospace, input[type="text"].plate-field {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  padding-bottom: 100px;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: -1;
  transition: background 0.3s ease;
}

/* Dark mode toggle button */
.dark-mode-toggle {
  position: fixed;
  bottom: 90px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  z-index: 50;
  transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.dark-mode-toggle i {
  color: #fff;
  font-size: 20px;
  transition: transform 0.3s ease;
}

[data-theme="dark"] .dark-mode-toggle {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

[data-theme="dark"] .dark-mode-toggle:hover {
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}

/* Dark mode adjustments for cards */
[data-theme="dark"] .official-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

[data-theme="dark"] .warning-card {
  background: #1e3a5f;
  border-color: #2563eb;
}

[data-theme="dark"] .bottom-dock {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-top-color: #334155;
}

/* Dark mode for premium components */
[data-theme="dark"] .tabs-premium {
  background: rgba(30, 41, 59, 0.8);
}

[data-theme="dark"] .tab-premium {
  color: #94a3b8;
}

[data-theme="dark"] .tab-premium:hover {
  color: #e2e8f0;
}

[data-theme="dark"] .plate-box-premium {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .plate-box-premium .plate-field {
  color: #e2e8f0;
}

[data-theme="dark"] .plate-box-premium .plate-field::placeholder {
  color: #475569;
}

[data-theme="dark"] .greeting-card {
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
}

[data-theme="dark"] .skeleton-card {
  background: var(--bg-card);
}

/* Skeleton Loading Animation */
@keyframes skeleton-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #334155 25%, #475569 50%, #334155 75%);
  background-size: 200% 100%;
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-text-sm {
  height: 12px;
  margin-bottom: 6px;
}

.skeleton-box {
  height: 100px;
  margin-bottom: 12px;
}

.skeleton-card {
  padding: 20px;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: 0 4px 15px var(--shadow-color);
}

/* Animations */
@keyframes shine {
  100% { left: 125%; }
}

.animate-shine {
  animation: shine 1s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Shimmer animation for progress bar */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.animate-shimmer {
  animation: shimmer 2s infinite;
}

/* Government Bar */
.gov-bar {
  background: linear-gradient(90deg, #004d40 0%, #00204a 100%);
  color: white;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 40;
}

.gov-logo {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gov-pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Plate Box - Estilo Mercosul */
.plate-box {
  background: white;
  border: 3px solid #111;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  position: relative;
  transition: transform 0.2s;
}

.plate-box:focus-within {
  transform: scale(1.02);
  border-color: var(--gov-blue);
}

.plate-top {
  background: var(--gov-blue);
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 2px solid white;
}

.plate-top span {
  color: white;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
}

.plate-field {
  width: 100%;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 48px;
  font-weight: 500;
  text-transform: uppercase;
  color: #111;
  letter-spacing: 6px;
  border: none;
  outline: none;
  padding: 10px 0;
  background: transparent;
}

.plate-qr {
  position: absolute;
  left: 10px;
  top: 55%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  opacity: 0.3;
  background: linear-gradient(90deg, #000 25%, transparent 25%, transparent 75%, #000 75%),
              linear-gradient(#000 25%, transparent 25%, transparent 75%, #000 75%);
  background-size: 8px 8px;
}

/* Form Elements */
.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.5px;
}

.official-select {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  color: #334155;
  outline: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  transition: all 0.3s;
}

.official-select:focus {
  border-color: var(--gov-blue);
  box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.1);
  background-color: white;
}

/* Buttons */
.btn-issue {
  background: linear-gradient(180deg, #009c3b 0%, #00702a 100%);
  border: none;
  border-bottom: 4px solid #00521e;
  border-radius: 10px;
  color: white;
  width: 100%;
  padding: 18px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 156, 59, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.1s;
}

.btn-issue:active {
  transform: translateY(4px);
  border-bottom: 0;
  box-shadow: inset 0 4px 10px rgba(0,0,0,0.2);
}

.btn-issue:disabled {
  display: flex !important;
  visibility: visible !important;
  opacity: 0.8;
  cursor: not-allowed;
  background: linear-gradient(180deg, #6b7280 0%, #4b5563 100%);
  border-bottom-color: #374151;
  box-shadow: 0 5px 10px rgba(107, 114, 128, 0.3);
}

.btn-consult {
  background: linear-gradient(180deg, #003399 0%, #002366 100%);
  border-bottom-color: #001a4d;
  box-shadow: 0 10px 20px rgba(0, 51, 153, 0.3);
}

.btn-original {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-bottom-color: #020617;
  box-shadow: 0 10px 20px rgba(30, 41, 59, 0.3);
}

/* Cards */
.official-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  margin-bottom: 20px;
}

.card-header {
  background: #f8fafc;
  padding: 15px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-body {
  padding: 20px;
}

.cyber-card {
  background: #1e293b;
  color: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  overflow: hidden;
}

/* Tabs */
.tab-switcher {
  display: flex;
  background: #e2e8f0;
  border-radius: 12px;
  padding: 4px;
}

.tab-btn {
  flex: 1 1;
  padding: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #64748b;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.3s;
}

.tab-btn.active {
  background: white;
  color: var(--gov-blue);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Bottom Dock - Premium Design */
.bottom-dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 420px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
  border-radius: 24px;
  padding: 14px 8px 8px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: visible;
}

.dock-item {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 18px;
  color: #94a3b8;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.dock-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 18px;
}

.dock-item i {
  font-size: 1.3rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.dock-item span {
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  font-size: 0.6rem;
}

.dock-item:hover {
  color: #e2e8f0;
}

.dock-item:hover::before {
  opacity: 1;
}

.dock-item:hover i {
  transform: scale(1.15);
}

.dock-item.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(37, 99, 235, 0.2) 100%);
}

.dock-item.active::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.dock-item.active i {
  color: #60a5fa;
  filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.6));
}

/* Specific Dock Item Styles */
.dock-item.dock-history:hover i {
  color: #a78bfa;
}

.dock-item.dock-history.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(124, 58, 237, 0.2) 100%);
}

.dock-item.dock-history.active i {
  color: #a78bfa;
  filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.6));
}

.dock-item.dock-credits {
  position: relative;
  overflow: visible !important;
}

.dock-item.dock-credits::after {
  content: 'RECARREGUE';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-size: 8px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 10px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.5);
  animation: pulse-badge 2s ease-in-out infinite;
  z-index: 100;
  border: 2px solid rgba(255,255,255,0.3);
}

@keyframes pulse-badge {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.5);
  }
  50% {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.8);
  }
}

.dock-item.dock-credits:hover i {
  color: #34d399;
}

.dock-item.dock-credits.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(5, 150, 105, 0.2) 100%);
}

.dock-item.dock-credits.active::after {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.dock-item.dock-credits.active i {
  color: #34d399;
  filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.6));
}

.dock-item.dock-logout:hover {
  color: #fca5a5;
}

.dock-item.dock-logout:hover i {
  color: #f87171;
}

.dock-item.dock-admin:hover i {
  color: #fbbf24;
}

.dock-item.dock-admin.active {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.3) 0%, rgba(217, 119, 6, 0.2) 100%);
}

.dock-item.dock-admin.active i {
  color: #fbbf24;
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.6));
}

/* Center item (Home) - Special style */
.dock-item.dock-home {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow:
    0 4px 15px rgba(59, 130, 246, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.dock-item.dock-home:hover {
  transform: scale(1.1);
  box-shadow:
    0 6px 20px rgba(59, 130, 246, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dock-item.dock-home i {
  color: #fff;
}

.dock-item.dock-home::before {
  display: none;
}

/* Warning Card */
.warning-card {
  background: linear-gradient(135deg, #fff 0%, #fff7ed 100%);
  border-left: 5px solid #f97316;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.warning-icon {
  color: #f97316;
  font-size: 1.5rem;
  background: #fff7ed;
  padding: 10px;
  border-radius: 50%;
}

.warning-close {
  margin-left: auto;
  color: #9ca3af;
  cursor: pointer;
}

/* Loading */
#global-loader {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.95);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#global-loader.flex {
  display: flex !important;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid #e2e8f0;
  border-top: 5px solid var(--gov-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Toast */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #1e293b;
  color: white;
  padding: 15px 25px;
  border-radius: 12px;
  border-left: 5px solid var(--gov-green);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transform: translateX(200%);
  transition: 0.4s;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
}

.toast.show {
  transform: translateX(0);
}

/* Remove scrollbar styling in favor of default */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Remove number input arrows */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

/* ============================================
   AUTH PAGES - Login & Register Modern Design
   ============================================ */

.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
}

/* Animated Background */
.auth-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.auth-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s infinite ease-in-out;
}

.auth-bg-shape-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  top: -200px;
  left: -100px;
  animation-delay: 0s;
}

.auth-bg-shape-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  bottom: -150px;
  right: -100px;
  animation-delay: -7s;
}

.auth-bg-shape-3 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(-30px, -20px) scale(1.02); }
}

/* Auth Container */
.auth-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .auth-container {
    flex-direction: row;
  }
}

/* Brand Side (Left) */
.auth-brand {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.auth-brand-register {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
}

@media (min-width: 1024px) {
  .auth-brand {
    width: 45%;
    min-height: 100vh;
    padding: 60px 50px;
  }
}

.auth-brand-content {
  position: relative;
  z-index: 1;
  max-width: 400px;
}

.auth-brand-logo {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
}

.auth-logo-icon {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: pulse-glow 3s infinite;
}

.auth-logo-icon-register {
  border-radius: 50%;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(255, 255, 255, 0.4); }
  50% { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 0 15px rgba(255, 255, 255, 0); }
}

.auth-logo-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
  border: 3px solid white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
}

.auth-logo-badge-register {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5);
}

.auth-brand-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.auth-brand-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin-bottom: 40px;
}

/* Auth Features */
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

.auth-feature:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.auth-feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  flex-shrink: 0;
}

.auth-feature-icon-register {
  background: rgba(255, 255, 255, 0.25);
}

.auth-feature-text {
  text-align: left;
}

.auth-feature-text strong {
  display: block;
  color: white;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 2px;
}

.auth-feature-text span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.auth-brand-footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
}

.auth-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  padding: 10px 20px;
  border-radius: 30px;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.auth-status-dot {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Form Side (Right) */
.auth-form-side {
  flex: 1 1;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 20px;
  min-height: auto;
}

@media (min-width: 1024px) {
  .auth-form-side {
    padding: 60px;
    min-height: 100vh;
  }
}

.auth-form-container {
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

.auth-form-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-form-header h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.auth-form-header p {
  color: #64748b;
  font-size: 15px;
}

/* Auth Error */
.auth-error {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.auth-error > i {
  font-size: 24px;
  color: #ef4444;
  flex-shrink: 0;
}

.auth-error > div {
  flex: 1 1;
}

.auth-error strong {
  display: block;
  color: #b91c1c;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}

.auth-error span {
  color: #dc2626;
  font-size: 13px;
}

.auth-error-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  transition: color 0.3s;
}

.auth-error-close:hover {
  color: #ef4444;
}

/* Auth Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.auth-field label i {
  font-size: 14px;
  color: #94a3b8;
}

.auth-input-wrapper {
  position: relative;
}

.auth-input-wrapper input {
  width: 100%;
  padding: 16px 16px 16px 50px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  background: #f8fafc;
  transition: all 0.3s;
  outline: none;
}

.auth-input-wrapper input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.auth-input-wrapper input:focus {
  border-color: #3b82f6;
  background: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.auth-input-wrapper.valid input {
  border-color: #10b981;
  background: #f0fdf4;
}

.auth-input-wrapper.valid input:focus {
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.auth-input-wrapper.invalid input {
  border-color: #ef4444;
  background: #fef2f2;
}

.auth-input-wrapper.invalid input:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.auth-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #94a3b8;
  transition: color 0.3s;
}

.auth-input-icon.whatsapp {
  color: #25d366;
}

.auth-input-wrapper input:focus ~ .auth-input-icon {
  color: #3b82f6;
}

.auth-input-wrapper.valid .auth-input-icon {
  color: #10b981;
}

.auth-input-wrapper.invalid .auth-input-icon {
  color: #ef4444;
}

.auth-validation-icon {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
}

.auth-validation-icon .fa-check-circle {
  color: #10b981;
}

.auth-validation-icon .fa-times-circle {
  color: #ef4444;
}

.auth-password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  font-size: 18px;
  transition: color 0.3s;
}

.auth-password-toggle:hover {
  color: #64748b;
}

.auth-field-hint {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 6px;
  padding-left: 4px;
}

.auth-field-hint.valid {
  color: #10b981;
  font-weight: 600;
}

.auth-field-hint.taken {
  color: #ef4444;
  font-weight: 600;
}

.auth-field-hint.checking {
  color: #3b82f6;
}

.auth-field-hint i {
  margin-right: 4px;
}

.auth-input-wrapper.checking input {
  border-color: #3b82f6;
  background: #eff6ff;
}

.auth-input-wrapper.checking .auth-input-icon {
  color: #3b82f6;
}

/* Password Strength */
.auth-password-strength {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.strength-bar {
  flex: 1 1;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: 3px;
  transition: all 0.3s;
}

.auth-password-strength span {
  font-size: 12px;
  font-weight: 600;
  min-width: 80px;
}

/* Submit Button */
.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 14px;
  color: white;
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
  transition: all 0.3s;
  margin-top: 8px;
}

.auth-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.auth-submit:active:not(:disabled) {
  transform: translateY(0);
}

.auth-submit:disabled {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

.auth-submit-register {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  box-shadow: 0 5px 15px rgba(100, 116, 139, 0.3);
  cursor: pointer;
}

.auth-submit-register:hover:not(:disabled) {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(100, 116, 139, 0.4);
}

.auth-submit-register.ready {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
  animation: pulse-ready 2s infinite;
}

@keyframes pulse-ready {
  0%, 100% { box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 10px 40px rgba(16, 185, 129, 0.6); }
}

.auth-submit-register.ready:hover:not(:disabled) {
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
  animation: none;
}

.auth-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.auth-divider span {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
}

/* Register/Login Link */
.auth-register-link {
  text-align: center;
}

.auth-register-link p {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 12px;
}

.auth-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #86efac;
  border-radius: 12px;
  color: #059669;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s;
}

.auth-link:hover {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.auth-link-login {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #93c5fd;
  color: #2563eb;
}

.auth-link-login:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

/* Support */
.auth-support {
  margin-top: 28px;
}

.auth-support a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #a7f3d0;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s;
}

.auth-support a:hover {
  background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
}

.auth-support i {
  font-size: 36px;
  color: #25d366;
}

.auth-support div {
  text-align: left;
}

.auth-support strong {
  display: block;
  color: #1e293b;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}

.auth-support span {
  color: #64748b;
  font-size: 13px;
}

/* Footer */
.auth-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.auth-footer p {
  color: #94a3b8;
  font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .auth-brand {
    padding: 30px 20px;
  }

  .auth-brand-title {
    font-size: 28px;
  }

  .auth-features {
    display: none;
  }

  .auth-brand-footer {
    margin-top: 20px;
  }

  .auth-form-side {
    padding: 30px 20px;
  }
}

/* ============================================
   MOBILE RESPONSIVENESS IMPROVEMENTS
   ============================================ */

/* Government Bar - Mobile */
@media (max-width: 480px) {
  .gov-bar {
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .gov-logo {
    font-size: 0.85rem;
    gap: 6px;
  }

  .gov-logo img {
    width: 18px !important;
  }

  .gov-pill {
    padding: 3px 8px;
    font-size: 0.65rem;
  }
}

/* Plate Box - Mobile */
@media (max-width: 480px) {
  .plate-field {
    font-size: 36px;
    letter-spacing: 3px;
    padding: 8px 0;
  }

  .plate-top {
    height: 28px;
  }

  .plate-top span {
    font-size: 10px;
  }

  .plate-qr {
    width: 28px;
    height: 28px;
  }
}

/* Buttons - Mobile */
@media (max-width: 480px) {
  .btn-issue {
    padding: 14px;
    font-size: 1rem;
    gap: 8px;
  }
}

/* Tab Switcher - Mobile */
@media (max-width: 480px) {
  .tab-switcher {
    border-radius: 10px;
    padding: 3px;
  }

  .tab-btn {
    padding: 8px 4px;
    font-size: 0.75rem;
    border-radius: 7px;
  }
}

/* Cards - Mobile */
@media (max-width: 480px) {
  .official-card {
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .card-header {
    padding: 10px 12px;
  }

  .card-body {
    padding: 14px;
  }

  .cyber-card {
    border-radius: 10px;
  }
}

/* Form Elements - Mobile */
@media (max-width: 480px) {
  .form-label {
    font-size: 0.7rem;
    margin-bottom: 4px;
  }

  .official-select {
    padding: 12px;
    font-size: 0.85rem;
    border-radius: 6px;
  }
}

/* Bottom Dock - Mobile */
@media (max-width: 480px) {
  .bottom-dock {
    width: 94%;
    padding: 10px 15px;
    border-radius: 16px;
    bottom: 12px;
  }

  .dock-item {
    font-size: 0.6rem;
  }

  .dock-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
  }
}

/* Warning Card - Mobile */
@media (max-width: 480px) {
  .warning-card {
    padding: 12px;
    gap: 10px;
    flex-direction: column;
  }

  .warning-icon {
    font-size: 1.2rem;
    padding: 8px;
  }

  .warning-card h4 {
    font-size: 12px;
  }

  .warning-card p {
    font-size: 11px;
  }
}

/* Toast - Mobile */
@media (max-width: 480px) {
  .toast {
    top: auto;
    bottom: 100px;
    left: 16px;
    right: 16px;
    padding: 12px 16px;
    font-size: 13px;
  }
}

/* Tables - Mobile */
@media (max-width: 768px) {
  table {
    font-size: 12px;
  }

  th, td {
    padding: 8px !important;
  }
}

/* General Mobile Improvements - Dashboard only */
@media (max-width: 480px) {
  /* Only apply font changes to dashboard card elements */
  .official-card h2 {
    font-size: 16px !important;
  }

  .official-card h3,
  .cyber-card h3 {
    font-size: 14px !important;
  }

  /* Loading Modal - Mobile */
  .loader-spinner {
    width: 48px;
    height: 48px;
    border-width: 4px;
  }
}

/* Grid Improvements - Mobile - using specific classes instead of attribute selectors */

/* Quick Credits Grid */
.quick-credits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 12px;
  gap: 12px;
}

@media (max-width: 480px) {
  .quick-credits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .quick-credits-grid button {
    padding: 10px !important;
    font-size: 14px !important;
  }
}

/* Hide elements on mobile */
@media (max-width: 400px) {
  .hide-on-mobile {
    display: none !important;
  }
}

/* QR Code Image - Mobile */
@media (max-width: 480px) {
  img[alt="PIX QR Code"] {
    width: 220px !important;
    height: 220px !important;
  }
}

/* ============================================
   PREMIUM DESIGN ENHANCEMENTS
   ============================================ */

/* Premium Button Styles */
.btn-premium {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.45);
}

.btn-premium:active {
  transform: translateY(0);
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-premium:hover::before {
  left: 100%;
}

/* Premium Card Hover Effects */
.card-hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Glass Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .glass-effect {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Premium Input Focus */
.premium-input {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #e2e8f0;
}

.premium-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  outline: none;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Smooth Transitions for All Elements */
button, a, input, select, .official-card, .cyber-card {
  transition: all 0.2s ease;
}

/* Enhanced Bottom Dock */
.bottom-dock {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .bottom-dock {
  background: linear-gradient(180deg, rgba(30,41,59,0.98) 0%, rgba(15,23,42,0.98) 100%);
  border-top: 1px solid rgba(51, 65, 85, 0.8);
}

/* Enhanced Stat Cards */
.stat-card-premium {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(226,232,240,0.6);
  position: relative;
  overflow: hidden;
}

.stat-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, currentColor 0%, transparent 70%);
  opacity: 0.05;
  border-radius: 0 20px 0 100%;
}

/* Premium Badge Styles */
.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.15) 100%);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(29, 78, 216, 0.15) 100%);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Pulse Animation for Live Status */
@keyframes pulse-live {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.pulse-live {
  animation: pulse-live 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Stats Grid Mobile */
@media (max-width: 480px) {
  .stats-grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  .stat-card-premium {
    padding: 12px;
    border-radius: 14px;
  }

  .stat-card-premium p:first-of-type {
    font-size: 9px !important;
  }

  .stat-card-premium p:last-of-type {
    font-size: 20px !important;
  }
}

/* Enhanced Official Card Styles */
.official-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

.card-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
}

/* Page Transition */
@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-enter {
  animation: page-enter 0.4s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #64748b 0%, #475569 100%);
}

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #1e293b;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #475569 0%, #334155 100%);
}

/* Selection Color */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: inherit;
}

/* Focus Visible for Accessibility */
:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* ============================================
   PREMIUM DESIGN V2 - Enhanced Components
   ============================================ */

/* 1. Premium Plate Box with 3D Effect */
.plate-box-premium {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  padding: 0;
  position: relative;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.15),
    0 1px 2px rgba(0, 0, 0, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.8);
  transform: perspective(500px) rotateX(2deg);
  transition: all 0.3s ease;
  overflow: hidden;
}

.plate-box-premium:hover {
  transform: perspective(500px) rotateX(0deg) translateY(-2px);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.8);
}

.plate-box-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.plate-box-premium:hover::before {
  left: 100%;
}

.plate-box-premium .plate-top {
  background: linear-gradient(135deg, var(--gov-blue) 0%, #1e40af 100%);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 3px solid #ffd700;
}

.plate-box-premium .plate-top span {
  color: white;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.plate-box-premium .plate-field {
  width: 100%;
  text-align: center;
  font-family: 'JetBrains Mono', 'Oswald', monospace;
  font-size: 48px;
  font-weight: 600;
  text-transform: uppercase;
  color: #1e293b;
  letter-spacing: 8px;
  border: none;
  outline: none;
  padding: 14px 0;
  background: transparent;
  transition: all 0.3s;
}

.plate-box-premium .plate-field::placeholder {
  color: #cbd5e1;
  letter-spacing: 6px;
}

.plate-box-premium .plate-field:focus {
  color: #0f172a;
}

.plate-box-premium .plate-qr {
  position: absolute;
  left: 12px;
  top: 58%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  opacity: 0.25;
  background: linear-gradient(90deg, #000 25%, transparent 25%, transparent 75%, #000 75%),
              linear-gradient(#000 25%, transparent 25%, transparent 75%, #000 75%);
  background-size: 8px 8px;
}

.plate-box-premium.scanning {
  animation: plate-scan 1.5s ease-in-out infinite;
}

@keyframes plate-scan {
  0%, 100% {
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.15),
      0 0 0 2px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow:
      0 10px 30px rgba(59, 130, 246, 0.3),
      0 0 0 4px rgba(59, 130, 246, 0.5),
      0 0 20px rgba(59, 130, 246, 0.3);
  }
}

.plate-input-glow {
  transition: all 0.3s ease;
}

.plate-input-glow:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3), 0 0 20px rgba(59, 130, 246, 0.2);
}

/* 2. Premium Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-notification {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 16px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: toast-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  min-width: 300px;
  max-width: 400px;
}

.toast-notification.toast-success {
  border-left: 4px solid #10b981;
}

.toast-notification.toast-error {
  border-left: 4px solid #ef4444;
}

.toast-notification.toast-info {
  border-left: 4px solid #3b82f6;
}

.toast-notification.toast-exit {
  animation: toast-slide-out 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toast-slide-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.toast-success .toast-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.toast-error .toast-icon {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.toast-info .toast-icon {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.toast-content {
  flex: 1 1;
}

.toast-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}

.toast-message {
  font-size: 13px;
  color: #94a3b8;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  animation: toast-progress 4s linear forwards;
}

@keyframes toast-progress {
  from { width: 100%; }
  to { width: 0%; }
}

/* 3. Confetti Animation */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0;
  animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translateY(-100px) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg);
  }
}

/* 4. Premium Tabs with Sliding Indicator */
.tabs-premium {
  display: flex;
  background: rgba(241, 245, 249, 0.8);
  border-radius: 16px;
  padding: 6px;
  position: relative;
  gap: 4px;
}

.tab-premium {
  flex: 1 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.tab-premium:hover {
  color: #1e293b;
}

.tab-premium.active {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.tab-premium i {
  font-size: 14px;
}

.tab-indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* 5. Skeleton Loading */
.skeleton-loading {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes skeleton-wave {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: 12px;
}

.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.skeleton-card {
  padding: 20px;
  border-radius: 16px;
  background: white;
}

/* 6. Ripple Effect */
.ripple-effect {
  position: relative;
  overflow: hidden;
}

.ripple-effect::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.5s, opacity 0.3s;
}

.ripple-effect:active::after {
  transform: translate(-50%, -50%) scale(2);
  opacity: 1;
  transition: transform 0s, opacity 0s;
}

/* 7. Greeting Card */
.greeting-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 24px;
  color: white;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.greeting-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.greeting-card .greeting-emoji {
  font-size: 32px;
  margin-bottom: 8px;
}

.greeting-card .greeting-text {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}

.greeting-card .greeting-subtext {
  font-size: 14px;
  opacity: 0.9;
}

/* 8. Premium Button with Ripple */
.btn-premium-ripple {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 16px 32px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.btn-premium-ripple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.45);
}

.btn-premium-ripple:active {
  transform: translateY(0);
}

.btn-premium-ripple .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* 9. Success Celebration Overlay */
.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: overlay-fade-in 0.3s ease;
}

@keyframes overlay-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.success-card {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  animation: success-bounce-in 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

@keyframes success-bounce-in {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.success-icon-container {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 40px;
  color: white;
  animation: success-pulse 1s ease-in-out infinite;
}

@keyframes success-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  .toast-container {
    top: auto;
    bottom: 100px;
    right: 10px;
    left: 10px;
  }

  .toast-notification {
    min-width: auto;
    max-width: none;
  }

  .greeting-card {
    padding: 20px;
  }

  .greeting-card .greeting-text {
    font-size: 20px;
  }

  .tabs-premium {
    padding: 4px;
  }

  .tab-premium {
    padding: 10px 8px;
    font-size: 11px;
  }

  .tab-premium i {
    font-size: 12px;
  }
}

/* ============================================
   MOBILE UX ENHANCEMENTS
   ============================================ */

/* 1. Pull to Refresh */
.pull-to-refresh {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 100;
  pointer-events: none;
}

.pull-to-refresh.pulling {
  transform: translateY(0);
}

.pull-to-refresh.refreshing .pull-spinner {
  animation: spin 1s linear infinite;
}

.pull-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: #3b82f6;
  border-radius: 50%;
}

.pull-arrow {
  font-size: 24px;
  color: #3b82f6;
  transition: transform 0.3s;
}

.pull-to-refresh.ready .pull-arrow {
  transform: rotate(180deg);
}

/* 2. Swipe Tabs Container */
.swipe-container {
  overflow-x: hidden;
  touch-action: pan-y pinch-zoom;
}

.swipe-content {
  display: flex;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.swipe-panel {
  flex: 0 0 100%;
  min-width: 100%;
}

/* 3. Bottom Sheet */
.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 200;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.bottom-sheet-overlay.open {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-radius: 24px 24px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 201;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

.bottom-sheet.open {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
  margin: 12px auto;
}

.bottom-sheet-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bottom-sheet-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.bottom-sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s;
}

.bottom-sheet-close:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.bottom-sheet-content {
  padding: 20px;
}

/* 4. Sticky Headers */
.sticky-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sticky-header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 5. Safe Area (iPhone notch) */
@supports (padding-top: env(safe-area-inset-top)) {
  .safe-area-top {
    padding-top: env(safe-area-inset-top);
  }

  .safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .bottom-dock {
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    bottom: 0;
    border-radius: 24px 24px 0 0;
  }

  body {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }
}

/* 6. Touch Feedback Global */
.touch-feedback {
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  cursor: pointer;
}

.touch-feedback::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--touch-x, 50%) var(--touch-y, 50%),
    rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.touch-feedback:active::after {
  opacity: 1;
}

/* Dark mode touch feedback */
[data-theme="dark"] .touch-feedback::after {
  background: radial-gradient(circle at var(--touch-x, 50%) var(--touch-y, 50%),
    rgba(255, 255, 255, 0.15) 0%, transparent 60%);
}

/* 7. Smooth Scroll */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.smooth-scroll {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Momentum scrolling for iOS */
.scroll-container {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

/* 8. Progress Indicators */
.progress-bar {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 2px;
  transition: width 0.3s ease;
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 1.5s infinite;
}

.progress-circular {
  width: 48px;
  height: 48px;
  position: relative;
}

.progress-circular svg {
  transform: rotate(-90deg);
}

.progress-circular-bg {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 4;
}

.progress-circular-fill {
  fill: none;
  stroke: #3b82f6;
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dasharray 0.3s ease;
}

.progress-circular-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

/* 9. Empty States */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.empty-state-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #94a3b8;
}

.empty-state-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-description {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 280px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.empty-state-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.empty-state-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

/* 10. Haptic Button */
.haptic-button {
  transition: transform 0.1s;
}

.haptic-button:active {
  transform: scale(0.97);
}

/* 11. Floating Action Button (FAB) */
.fab {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 40;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
}

.fab:active {
  transform: scale(0.95);
}

.fab-menu {
  position: fixed;
  bottom: 170px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 40;
}

.fab-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text-primary);
}

.fab-menu-item:hover {
  transform: translateX(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.fab-menu-item i {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* 12. Card Hover Effects */
.card-float {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-tilt {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

/* 13. Copy Button */
.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  color: #3b82f6;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-button:hover {
  background: rgba(59, 130, 246, 0.2);
}

.copy-button.copied {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

/* 14. Tooltip */
.tooltip {
  position: relative;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 8px 12px;
  background: #1e293b;
  color: white;
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 100;
}

.tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 6px solid transparent;
  border-top-color: #1e293b;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.tooltip:hover::before,
.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

.tooltip:hover::before {
  transform: translateX(-50%) translateY(-12px);
}

.tooltip:hover::after {
  transform: translateX(-50%) translateY(0);
}

/* 15. Input Focus Glow */
.input-glow {
  transition: all 0.3s ease;
}

.input-glow:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 0 20px rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
}

/* 16. Animated Checkmark */
.checkmark-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  animation: checkmark-pop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkmark-circle i {
  font-size: 28px;
  color: white;
  animation: checkmark-draw 0.3s ease 0.2s both;
}

@keyframes checkmark-pop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes checkmark-draw {
  0% { opacity: 0; transform: scale(0); }
  100% { opacity: 1; transform: scale(1); }
}

/* 17. Slide Animations */
.slide-up {
  animation: slideUp 0.4s ease;
}

.slide-down {
  animation: slideDown 0.4s ease;
}

.slide-left {
  animation: slideLeft 0.4s ease;
}

.slide-right {
  animation: slideRight 0.4s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 18. Stagger Animation - DESATIVADO para performance mobile */
.stagger-item {
  /* Animações desativadas para melhorar performance */
  opacity: 1;
}

/* 19. Pulse Dot (for notifications) */
.pulse-dot {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  position: relative;
}

.pulse-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #ef4444;
  opacity: 0.4;
  animation: pulse-ring 1.5s ease infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* 20. Lazy Load Image */
.lazy-image {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-image.loaded {
  opacity: 1;
}

.lazy-image-placeholder {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

/* 21. Cards Full Width Mobile */
@media (max-width: 480px) {
  .card-mobile-full {
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .fab {
    bottom: 90px;
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .bottom-sheet {
    border-radius: 20px 20px 0 0;
  }

  .empty-state {
    padding: 40px 16px;
  }

  .empty-state-icon {
    width: 100px;
    height: 100px;
    font-size: 40px;
  }
}

/* 22. Long Press Indicator */
.long-press {
  position: relative;
}

.long-press::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.long-press.pressing::before {
  border-color: #3b82f6;
  animation: long-press-fill 0.5s ease forwards;
}

@keyframes long-press-fill {
  0% { -webkit-clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
  100% { -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

/* 23. Action Sheet */
.action-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0));
  z-index: 201;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-sheet.open {
  transform: translateY(0);
}

.action-sheet-content {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
}

.action-sheet-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: none;
  background: none;
  width: 100%;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s;
}

.action-sheet-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.action-sheet-item:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

.action-sheet-item.danger {
  color: #ef4444;
}

.action-sheet-item i {
  width: 24px;
  text-align: center;
}

.action-sheet-cancel {
  margin-top: 8px;
  background: var(--bg-card);
  border-radius: 16px;
}

.action-sheet-cancel button {
  display: block;
  width: 100%;
  padding: 16px;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: 600;
  color: #3b82f6;
  cursor: pointer;
}

/* 24. Snackbar */
.snackbar {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
}

.snackbar.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.snackbar-action {
  background: none;
  border: none;
  color: #60a5fa;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  margin: -4px -8px;
  margin-left: 8px;
}

/* 25. Page Transition - REMOVIDO pois conflitava com animação page-enter */
/* As classes page-enter-active, page-exit são para react-transition-group */
/* Se precisar usar, importe a biblioteca corretamente */

.page-exit {
  opacity: 1;
  transform: translateX(0);
}

.page-exit-active {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
}

/* ============================================
   PREMIUM DESIGN SYSTEM V3 - Complete Implementation
   50 Layout, Design & Feedback Tips
   ============================================ */

/* ========================================
   1. SISTEMA DE GRID 8PX
   ======================================== */

/* Spacing Scale (múltiplos de 8px) */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 56px;
  --space-11: 64px;
  --space-12: 80px;
  --space-13: 96px;
  --space-14: 112px;
  --space-15: 128px;
}

/* Margin Utilities */
.m-0 { margin: 0; }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-5 { margin: var(--space-5); }
.m-6 { margin: var(--space-6); }
.m-7 { margin: var(--space-7); }
.m-8 { margin: var(--space-8); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-7 { margin-bottom: var(--space-7); }
.mb-8 { margin-bottom: var(--space-8); }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: var(--space-1); }
.ml-2 { margin-left: var(--space-2); }
.ml-3 { margin-left: var(--space-3); }
.ml-4 { margin-left: var(--space-4); }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: var(--space-1); }
.mr-2 { margin-right: var(--space-2); }
.mr-3 { margin-right: var(--space-3); }
.mr-4 { margin-right: var(--space-4); }

.mx-auto { margin-left: auto; margin-right: auto; }
.my-0 { margin-top: 0; margin-bottom: 0; }
.my-4 { margin-top: var(--space-4); margin-bottom: var(--space-4); }
.my-6 { margin-top: var(--space-6); margin-bottom: var(--space-6); }
.my-8 { margin-top: var(--space-8); margin-bottom: var(--space-8); }

/* Padding Utilities */
.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-7 { padding: var(--space-7); }
.p-8 { padding: var(--space-8); }

.pt-0 { padding-top: 0; }
.pt-4 { padding-top: var(--space-4); }
.pt-6 { padding-top: var(--space-6); }
.pt-8 { padding-top: var(--space-8); }

.pb-0 { padding-bottom: 0; }
.pb-4 { padding-bottom: var(--space-4); }
.pb-6 { padding-bottom: var(--space-6); }
.pb-8 { padding-bottom: var(--space-8); }

.px-0 { padding-left: 0; padding-right: 0; }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }

.py-0 { padding-top: 0; padding-bottom: 0; }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }

/* Gap Utilities */
.gap-0 { gap: 0; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-7 { gap: var(--space-7); }
.gap-8 { gap: var(--space-8); }

/* ========================================
   2. HIERARQUIA VISUAL & Z-INDEX
   ======================================== */

:root {
  /* Z-Index Scale */
  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-modal-backdrop: 40;
  --z-modal: 50;
  --z-popover: 60;
  --z-tooltip: 70;
  --z-toast: 80;
  --z-max: 9999;
}

.z-0 { z-index: var(--z-base); }
.z-10 { z-index: var(--z-dropdown); }
.z-20 { z-index: var(--z-sticky); }
.z-30 { z-index: var(--z-fixed); }
.z-40 { z-index: var(--z-modal-backdrop); }
.z-50 { z-index: var(--z-modal); }
.z-60 { z-index: var(--z-popover); }
.z-70 { z-index: var(--z-tooltip); }
.z-80 { z-index: var(--z-toast); }
.z-max { z-index: var(--z-max); }

/* Elevation Shadows (Hierarquia de profundidade) */
.elevation-0 { box-shadow: none; }

.elevation-1 {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.elevation-2 {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

.elevation-3 {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.elevation-4 {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.elevation-5 {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .elevation-1 {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .elevation-2 {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.35), 0 2px 4px -1px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .elevation-3 {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .elevation-4 {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .elevation-5 {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/* ========================================
   3. WHITESPACE & CONTAINERS
   ======================================== */

.container-narrow { max-width: 540px; margin: 0 auto; }
.container-medium { max-width: 720px; margin: 0 auto; }
.container-wide { max-width: 960px; margin: 0 auto; }
.container-full { max-width: 1200px; margin: 0 auto; }

.section-spacing { padding: var(--space-8) var(--space-4); }
.section-spacing-lg { padding: var(--space-12) var(--space-4); }

.content-spacing > * + * { margin-top: var(--space-4); }
.content-spacing-lg > * + * { margin-top: var(--space-6); }

/* ========================================
   4. CARDS PREMIUM SYSTEM
   ======================================== */

:root {
  /* Border Radius Scale */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-3xl: 24px;
  --radius-full: 9999px;
}

.rounded-none { border-radius: var(--radius-none); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-3xl { border-radius: var(--radius-3xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Card Base Premium */
.card-base {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card Variants */
.card-elevated {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card-outlined {
  background: transparent;
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-color);
}

.card-filled {
  background: rgba(59, 130, 246, 0.08);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

/* Card Interactive */
.card-interactive {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-interactive:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.card-interactive:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Card Glow Effect */
.card-glow {
  position: relative;
  overflow: hidden;
}

.card-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card-glow:hover::before {
  opacity: 1;
}

/* Card Shine Effect */
.card-shine {
  position: relative;
  overflow: hidden;
}

.card-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.card-shine:hover::after {
  left: 100%;
}

/* Card Glass */
.card-glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
}

[data-theme="dark"] .card-glass {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Gradient Border */
.card-gradient-border {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 1px;
}

.card-gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ========================================
   5. CORES SEMÂNTICAS & GRADIENTES
   ======================================== */

:root {
  /* Primary Colors */
  --color-primary-50: #eff6ff;
  --color-primary-100: #dbeafe;
  --color-primary-200: #bfdbfe;
  --color-primary-300: #93c5fd;
  --color-primary-400: #60a5fa;
  --color-primary-500: #3b82f6;
  --color-primary-600: #2563eb;
  --color-primary-700: #1d4ed8;
  --color-primary-800: #1e40af;
  --color-primary-900: #1e3a8a;

  /* Success Colors */
  --color-success-50: #f0fdf4;
  --color-success-100: #dcfce7;
  --color-success-500: #22c55e;
  --color-success-600: #16a34a;
  --color-success-700: #15803d;

  /* Warning Colors */
  --color-warning-50: #fffbeb;
  --color-warning-100: #fef3c7;
  --color-warning-500: #f59e0b;
  --color-warning-600: #d97706;
  --color-warning-700: #b45309;

  /* Error Colors */
  --color-error-50: #fef2f2;
  --color-error-100: #fee2e2;
  --color-error-500: #ef4444;
  --color-error-600: #dc2626;
  --color-error-700: #b91c1c;

  /* Info Colors */
  --color-info-50: #ecfeff;
  --color-info-100: #cffafe;
  --color-info-500: #06b6d4;
  --color-info-600: #0891b2;
  --color-info-700: #0e7490;
}

/* Semantic Background Colors */
.bg-success { background-color: var(--color-success-50); }
.bg-success-solid { background-color: var(--color-success-500); color: white; }
.bg-warning { background-color: var(--color-warning-50); }
.bg-warning-solid { background-color: var(--color-warning-500); color: white; }
.bg-error { background-color: var(--color-error-50); }
.bg-error-solid { background-color: var(--color-error-500); color: white; }
.bg-info { background-color: var(--color-info-50); }
.bg-info-solid { background-color: var(--color-info-500); color: white; }

/* Text Colors */
.text-success { color: var(--color-success-600); }
.text-warning { color: var(--color-warning-600); }
.text-error { color: var(--color-error-600); }
.text-info { color: var(--color-info-600); }
.text-primary { color: var(--color-primary-600); }
.text-muted { color: var(--text-muted); }

/* Premium Gradients */
.gradient-primary {
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-700) 100%);
}

.gradient-success {
  background: linear-gradient(135deg, var(--color-success-500) 0%, var(--color-success-700) 100%);
}

.gradient-warning {
  background: linear-gradient(135deg, var(--color-warning-500) 0%, var(--color-warning-700) 100%);
}

.gradient-error {
  background: linear-gradient(135deg, var(--color-error-500) 0%, var(--color-error-700) 100%);
}

.gradient-royal {
  background: linear-gradient(135deg, #1e3a8a 0%, #312e81 50%, #4c1d95 100%);
}

.gradient-ocean {
  background: linear-gradient(135deg, #0891b2 0%, #0284c7 50%, #3b82f6 100%);
}

.gradient-sunset {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%);
}

.gradient-forest {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
}

.gradient-aurora {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 33%, #a855f7 66%, #d946ef 100%);
}

/* Animated Gradient */
.gradient-animated {
  background: linear-gradient(270deg, #3b82f6, #8b5cf6, #ec4899, #3b82f6);
  background-size: 400% 400%;
  animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glass Gradient */
.gradient-glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ========================================
   6. TIPOGRAFIA & ESCALA
   ======================================== */

:root {
  /* Font Sizes */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
}

/* Typography Classes */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }

.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }

.leading-tight { line-height: var(--leading-tight); }
.leading-snug { line-height: var(--leading-snug); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }
.leading-loose { line-height: var(--leading-loose); }

.tracking-tighter { letter-spacing: var(--tracking-tighter); }
.tracking-tight { letter-spacing: var(--tracking-tight); }
.tracking-normal { letter-spacing: var(--tracking-normal); }
.tracking-wide { letter-spacing: var(--tracking-wide); }
.tracking-wider { letter-spacing: var(--tracking-wider); }
.tracking-widest { letter-spacing: var(--tracking-widest); }

/* Heading Styles */
.heading-1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

.heading-2 {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

.heading-3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

.heading-4 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

.heading-5 {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  line-height: var(--leading-normal);
  color: var(--text-primary);
}

/* Body Text */
.body-lg {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.body-base {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

.body-sm {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

/* Caption & Label */
.caption {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  line-height: var(--leading-normal);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

.label {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   7. ÍCONES & MÍDIA
   ======================================== */

/* Icon Container */
.icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Icon Sizes */
.icon-xs { width: 16px; height: 16px; font-size: 12px; }
.icon-sm { width: 20px; height: 20px; font-size: 14px; }
.icon-md { width: 24px; height: 24px; font-size: 16px; }
.icon-lg { width: 32px; height: 32px; font-size: 20px; }
.icon-xl { width: 40px; height: 40px; font-size: 24px; }
.icon-2xl { width: 48px; height: 48px; font-size: 28px; }
.icon-3xl { width: 64px; height: 64px; font-size: 36px; }

/* Icon with Background */
.icon-bg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.icon-bg-sm {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.icon-bg-md {
  width: 40px;
  height: 40px;
  font-size: 18px;
}

.icon-bg-lg {
  width: 48px;
  height: 48px;
  font-size: 22px;
}

.icon-bg-xl {
  width: 56px;
  height: 56px;
  font-size: 26px;
}

/* Icon Color Variants */
.icon-bg-primary {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.icon-bg-success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.icon-bg-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.icon-bg-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.icon-bg-info {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
}

/* Icon Badge */
.icon-badge {
  position: relative;
}

.icon-badge::after {
  content: attr(data-count);
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Avatar Styles */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  font-weight: var(--font-semibold);
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-xs { width: 24px; height: 24px; font-size: 10px; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; }
.avatar-md { width: 40px; height: 40px; font-size: 14px; }
.avatar-lg { width: 48px; height: 48px; font-size: 18px; }
.avatar-xl { width: 64px; height: 64px; font-size: 24px; }
.avatar-2xl { width: 80px; height: 80px; font-size: 30px; }

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Avatar Group */
.avatar-group {
  display: flex;
}

.avatar-group .avatar {
  border: 2px solid var(--bg-card);
  margin-left: -8px;
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}

/* Image Aspect Ratios */
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-portrait { aspect-ratio: 3 / 4; }
.aspect-landscape { aspect-ratio: 4 / 3; }

/* Image Cover */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ========================================
   8. MICRO-INTERAÇÕES
   ======================================== */

/* Ripple Effect */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}

.ripple:active::after {
  animation: ripple-effect 0.6s ease-out;
}

@keyframes ripple-effect {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(40);
    opacity: 0;
  }
}

/* Bounce Animation */
.bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(-10px);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* Wiggle Animation */
.wiggle {
  animation: wiggle 0.5s ease-in-out;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

/* Scale Tap */
.scale-tap {
  transition: transform 0.1s ease;
}

.scale-tap:active {
  transform: scale(0.95);
}

/* Button Press Effect */
.btn-press {
  transition: all 0.1s ease;
}

.btn-press:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: none;
}

/* Glow Pulse */
.glow-pulse {
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.5), 0 0 10px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 0 30px rgba(59, 130, 246, 0.5);
  }
}

/* Shake Animation */
.shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* Float Animation */
.float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Heartbeat Animation */
.heartbeat {
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.1); }
  28% { transform: scale(1); }
  42% { transform: scale(1.1); }
  70% { transform: scale(1); }
}

/* Loading Dots */
.loading-dots {
  display: inline-flex;
  gap: 4px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  animation: loading-dots 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loading-dots {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
.spinner-lg { width: 32px; height: 32px; border-width: 4px; }
.spinner-xl { width: 48px; height: 48px; border-width: 5px; }

/* Progress Ring */
.progress-ring {
  width: 40px;
  height: 40px;
  position: relative;
}

.progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring circle {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}

.progress-ring .bg { stroke: #e2e8f0; }
.progress-ring .progress {
  stroke: #3b82f6;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.3s ease;
}

/* Confetti Animation */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background: #f59e0b;
  animation: confetti-fall 3s ease-out forwards;
  z-index: 9999;
  pointer-events: none;
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg);
  }
}

/* Success Checkmark Animation */
.success-check {
  width: 60px;
  height: 60px;
  position: relative;
}

.success-check circle {
  fill: none;
  stroke: #22c55e;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 190;
  stroke-dashoffset: 190;
  animation: circle-draw 0.6s ease forwards;
}

.success-check polyline {
  fill: none;
  stroke: #22c55e;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: check-draw 0.4s ease 0.5s forwards;
}

@keyframes circle-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}

/* ========================================
   9. ESTADOS VISUAIS
   ======================================== */

/* Focus States */
.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
}

.focus-ring-error:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.4);
}

.focus-ring-success:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.4);
}

/* Disabled State */
.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* Loading State */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Error State */
.error-state {
  border-color: var(--color-error-500) !important;
  background-color: var(--color-error-50);
}

.error-state:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Success State */
.success-state {
  border-color: var(--color-success-500) !important;
  background-color: var(--color-success-50);
}

.success-state:focus {
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Active/Selected State */
.active-state {
  background-color: rgba(59, 130, 246, 0.1);
  border-color: var(--color-primary-500);
}

/* ========================================
   10. FLEXBOX & GRID UTILITIES
   ======================================== */

/* Flex */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }

.flex-1 { flex: 1 1; }
.flex-auto { flex: 1 1 auto; }
.flex-none { flex: none; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Responsive Grid */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ========================================
   11. VISIBILITY & DISPLAY
   ======================================== */

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }

.visible { visibility: visible; }
.invisible { visibility: hidden; }

.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Mobile Only */
@media (max-width: 639px) {
  .sm\:hidden { display: none; }
}

/* Desktop Only */
@media (min-width: 640px) {
  .sm\:block { display: block; }
}

/* ========================================
   12. ALERTS & NOTIFICATIONS PREMIUM
   ======================================== */

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid;
}

.alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.alert-content {
  flex: 1 1;
  min-width: 0;
}

.alert-title {
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  margin-bottom: 2px;
}

.alert-message {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.alert-info {
  background: var(--color-info-50);
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--color-info-700);
}

.alert-success {
  background: var(--color-success-50);
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--color-success-700);
}

.alert-warning {
  background: var(--color-warning-50);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--color-warning-700);
}

.alert-error {
  background: var(--color-error-50);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--color-error-700);
}

/* ========================================
   13. RESPONSIVE MOBILE OPTIMIZATIONS
   ======================================== */

@media (max-width: 480px) {
  /* Typography Mobile */
  .heading-1 { font-size: var(--text-2xl); }
  .heading-2 { font-size: var(--text-xl); }
  .heading-3 { font-size: var(--text-lg); }
  .heading-4 { font-size: var(--text-base); }

  /* Container Mobile */
  .section-spacing { padding: var(--space-6) var(--space-3); }
  .section-spacing-lg { padding: var(--space-8) var(--space-3); }

  /* Icon Sizes Mobile */
  .icon-bg-lg { width: 40px; height: 40px; font-size: 18px; }
  .icon-bg-xl { width: 48px; height: 48px; font-size: 22px; }

  /* Alert Mobile */
  .alert {
    padding: var(--space-3);
    border-radius: var(--radius-md);
  }
}

/* ============================================
   DASHBOARD PREMIUM UPGRADES V2
   20 Melhorias Visuais e UX
   ============================================ */

/* ========================================
   1. GLASSMORPHISM HEADER
   ======================================== */

.header-glass {
  background: rgba(0, 77, 64, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.header-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
  pointer-events: none;
}

/* ========================================
   2. GRADIENT MESH BACKGROUND
   ======================================== */

.gradient-mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(at 40% 20%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(139, 92, 246, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(16, 185, 129, 0.1) 0px, transparent 50%),
    radial-gradient(at 80% 50%, rgba(245, 158, 11, 0.08) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(236, 72, 153, 0.08) 0px, transparent 50%),
    var(--bg-primary);
  animation: mesh-float 20s ease-in-out infinite;
}

@keyframes mesh-float {
  0%, 100% {
    background-position: 0% 0%, 100% 0%, 0% 50%, 100% 50%, 0% 100%;
  }
  50% {
    background-position: 50% 20%, 80% 30%, 20% 60%, 90% 40%, 10% 90%;
  }
}

[data-theme="dark"] .gradient-mesh-bg {
  background:
    radial-gradient(at 40% 20%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(139, 92, 246, 0.06) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(16, 185, 129, 0.05) 0px, transparent 50%),
    radial-gradient(at 80% 50%, rgba(245, 158, 11, 0.04) 0px, transparent 50%),
    var(--bg-primary);
}

/* ========================================
   3. CARDS COM BORDA GRADIENTE
   ======================================== */

.card-gradient-border-animated {
  position: relative;
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
}

.card-gradient-border-animated::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b, #10b981, #3b82f6);
  background-size: 300% 300%;
  border-radius: inherit;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: gradient-rotate 4s linear infinite;
}

@keyframes gradient-rotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ========================================
   4. STATS CARDS ANIMADOS MELHORADOS
   ======================================== */

.stat-card-premium {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--stat-color, #3b82f6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.stat-card-premium:hover::before {
  transform: scaleX(1);
}

.stat-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.stat-value-animated {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--stat-color, #3b82f6), var(--stat-color-dark, #1d4ed8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-icon-ring {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--stat-color, #3b82f6)15, var(--stat-color, #3b82f6)05);
  border: 2px solid var(--stat-color, #3b82f6)30;
  color: var(--stat-color, #3b82f6);
  font-size: 20px;
  position: relative;
}

.stat-icon-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 2px solid var(--stat-color, #3b82f6);
  opacity: 0;
  animation: stat-ring-pulse 2s ease-in-out infinite;
}

@keyframes stat-ring-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.1); }
}

/* ========================================
   5. AVATAR DO USUARIO
   ======================================== */

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 2px 10px rgba(251, 191, 36, 0.4);
  text-transform: uppercase;
  position: relative;
}

.user-avatar-online::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid var(--bg-card);
  border-radius: 50%;
}

/* ========================================
   6. PROGRESS RING PARA CREDITOS
   ======================================== */

.credits-ring {
  position: relative;
  width: 44px;
  height: 44px;
}

.credits-ring svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.credits-ring-bg {
  fill: none;
  stroke: rgba(34, 197, 94, 0.2);
  stroke-width: 4;
}

.credits-ring-progress {
  fill: none;
  stroke: #22c55e;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 113;
  stroke-dashoffset: 113;
  transition: stroke-dashoffset 1s ease;
}

.credits-ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #22c55e;
}

/* ========================================
   7. SKELETON SHIMMER MELHORADO
   ======================================== */

.skeleton-premium {
  background: linear-gradient(90deg,
    var(--bg-secondary) 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.2) 40%,
    rgba(255, 255, 255, 0.1) 60%,
    var(--bg-secondary) 80%,
    var(--bg-secondary) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card-premium {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.skeleton-card-premium::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: skeleton-shine 2s infinite;
}

@keyframes skeleton-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ========================================
   8. BADGE TOOLTIPS
   ======================================== */

.badge-tooltip {
  position: relative;
  cursor: pointer;
}

.badge-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: #1e293b;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.badge-tooltip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e293b;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.badge-tooltip:hover::after,
.badge-tooltip:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

/* ========================================
   9. TABS COM INDICADOR ANIMADO
   ======================================== */

.tabs-animated {
  position: relative;
  display: flex;
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 4px;
}

.tabs-animated-indicator {
  position: absolute;
  height: calc(100% - 8px);
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  z-index: 0;
}

.tab-animated {
  position: relative;
  z-index: 1;
  flex: 1 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.tab-animated.active {
  color: white;
}

.tab-animated i {
  font-size: 14px;
}

/* ========================================
   10. PLATE INPUT COM GLOW
   ======================================== */

.plate-input-glow {
  position: relative;
}

.plate-input-glow::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
  border-radius: inherit;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.plate-input-glow:focus-within::before {
  opacity: 0.6;
  animation: glow-pulse-input 2s ease-in-out infinite;
}

@keyframes glow-pulse-input {
  0%, 100% { opacity: 0.4; filter: blur(8px); }
  50% { opacity: 0.7; filter: blur(12px); }
}

/* ========================================
   11. SUCCESS CELEBRATION
   ======================================== */

.success-celebration {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  z-index: 1000;
  animation: celebration-fade-in 0.3s ease;
}

@keyframes celebration-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.success-celebration-content {
  background: white;
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  animation: celebration-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

@keyframes celebration-pop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
  animation: checkmark-bounce 0.6s ease 0.3s both;
}

@keyframes checkmark-bounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.success-checkmark i {
  font-size: 36px;
  color: white;
  animation: checkmark-draw 0.4s ease 0.6s both;
}

@keyframes checkmark-draw {
  from { opacity: 0; transform: scale(0) rotate(-45deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

/* ========================================
   12. ERROR SHAKE
   ======================================== */

.error-shake {
  animation: error-shake-anim 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes error-shake-anim {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.error-flash {
  animation: error-flash-anim 0.5s ease;
}

@keyframes error-flash-anim {
  0%, 50%, 100% { box-shadow: none; }
  25%, 75% { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3); }
}

/* ========================================
   13. SOUND TOGGLE
   ======================================== */

.sound-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
}

.sound-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.sound-toggle.muted {
  color: #94a3b8;
}

.sound-toggle.muted i {
  position: relative;
}

.sound-toggle.muted i::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 20px;
  background: #ef4444;
  transform: rotate(45deg);
  top: -2px;
  left: 8px;
}

/* ========================================
   14. DARK MODE TOGGLE
   ======================================== */

.theme-toggle {
  width: 56px;
  height: 28px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 11px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-toggle-thumb i {
  font-size: 12px;
  color: #f59e0b;
}

.theme-toggle.dark .theme-toggle-thumb {
  left: calc(100% - 24px);
  background: #1e293b;
}

.theme-toggle.dark .theme-toggle-thumb i {
  color: #60a5fa;
}

/* ========================================
   15. OFFLINE INDICATOR
   ======================================== */

.offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.offline-banner.show {
  transform: translateY(0);
}

.offline-banner i {
  animation: offline-pulse 1.5s ease-in-out infinite;
}

@keyframes offline-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ========================================
   16. QUICK ACTIONS FAB
   ======================================== */

.fab-container {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 200;
}

.fab-main {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.fab-main:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.5);
}

.fab-main.open {
  transform: rotate(45deg);
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.fab-actions {
  position: absolute;
  bottom: 70px;
  right: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.fab-container.open .fab-actions {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fab-action {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  position: relative;
}

.fab-action:hover {
  transform: scale(1.1);
}

.fab-action-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: #1e293b;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.fab-action:hover .fab-action-tooltip {
  opacity: 1;
}

/* ========================================
   17. RECENT PLATES DROPDOWN
   ======================================== */

.recent-plates-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.recent-plates-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.recent-plate-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid var(--border-color);
}

.recent-plate-item:last-child {
  border-bottom: none;
}

.recent-plate-item:hover {
  background: var(--bg-secondary);
}

.recent-plate-number {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.recent-plate-info {
  font-size: 11px;
  color: var(--text-muted);
}

/* ========================================
   18. CREDITS LOW WARNING
   ======================================== */

.credits-low-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(239, 68, 68, 0.15) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  animation: warning-pulse 2s ease-in-out infinite;
}

@keyframes warning-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.credits-low-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  animation: icon-bounce 1s ease infinite;
}

@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.credits-low-content h4 {
  font-size: 13px;
  font-weight: 700;
  color: #f59e0b;
  margin: 0 0 2px;
}

.credits-low-content p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

.credits-low-action {
  margin-left: auto;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.credits-low-action:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* ========================================
   19. ONBOARDING TOUR
   ======================================== */

.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9000;
}

.onboarding-spotlight {
  position: fixed;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
  z-index: 9001;
  transition: all 0.5s ease;
}

.onboarding-tooltip {
  position: fixed;
  background: white;
  border-radius: 16px;
  padding: 24px;
  max-width: 320px;
  z-index: 9002;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: tooltip-appear 0.3s ease;
}

@keyframes tooltip-appear {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.onboarding-tooltip h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px;
}

.onboarding-tooltip p {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 20px;
  line-height: 1.6;
}

.onboarding-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.onboarding-step {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  transition: all 0.3s ease;
}

.onboarding-step.active {
  width: 24px;
  background: #3b82f6;
}

.onboarding-step.completed {
  background: #10b981;
}

.onboarding-buttons {
  display: flex;
  gap: 12px;
}

.onboarding-btn {
  flex: 1 1;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.onboarding-btn-skip {
  background: #f1f5f9;
  border: none;
  color: #64748b;
}

.onboarding-btn-next {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: none;
  color: white;
}

.onboarding-btn:hover {
  transform: translateY(-2px);
}

/* ========================================
   20. EXTRAS PREMIUM
   ======================================== */

/* Pulse Animation for Notifications */
.notification-pulse {
  position: relative;
}

.notification-pulse::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  animation: notification-ping 1.5s ease-in-out infinite;
}

@keyframes notification-ping {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0; }
}

/* Number Counter Animation */
.number-counter {
  display: inline-block;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* Gradient Text Animated */
.text-gradient-animated {
  background: linear-gradient(270deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b, #3b82f6);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-text-flow 8s ease infinite;
}

@keyframes gradient-text-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hover Lift Effect */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Input Focus Glow */
.input-focus-glow:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2), 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Button Shine Effect */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  transform: rotate(30deg);
  transition: transform 0.6s ease;
}

.btn-shine:hover::after {
  transform: rotate(30deg) translateX(100%);
}

/* Card Hover Glow */
.card-hover-glow {
  transition: all 0.3s ease;
}

.card-hover-glow:hover {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.15), 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Status Dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot-online {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  animation: status-pulse 2s ease-in-out infinite;
}

.status-dot-offline {
  background: #ef4444;
}

.status-dot-away {
  background: #f59e0b;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.5); }
  50% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.8); }
}

/* ============================================
   PREMIUM EMISSION CARD - 30+ NOVIDADES
   ============================================ */

/* 1. Card Container Premium com Glassmorphism */
.emission-card-premium {
  background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.9) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255,255,255,0.9);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .emission-card-premium {
  background: linear-gradient(145deg, rgba(30,41,59,0.95) 0%, rgba(15,23,42,0.9) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* 2. Borda Gradiente Animada */
.emission-card-premium::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b, #10b981, #3b82f6);
  background-size: 400% 400%;
  border-radius: 26px;
  z-index: -1;
  animation: gradient-border 8s ease infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.emission-card-premium:hover::before,
.emission-card-premium:focus-within::before {
  opacity: 1;
}

@keyframes gradient-border {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 3. Header Premium do Card */
.emission-header-premium {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
  padding: 20px 24px;
  border-radius: 24px 24px 0 0;
  position: relative;
  overflow: hidden;
}

.emission-header-premium::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: header-shine 10s linear infinite;
}

@keyframes header-shine {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.emission-header-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 4. Ícone Animado do Header */
.emission-icon-premium {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  position: relative;
  animation: icon-float 3s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,0.2);
}

.emission-icon-premium::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 18px;
  border: 2px solid transparent;
  background: linear-gradient(45deg, rgba(255,255,255,0.3), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}

@keyframes icon-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(5deg); }
}

/* 5. Badge de Status Verificado */
.emission-verified-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* 6. Título e Subtítulo Premium */
.emission-title-premium {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  letter-spacing: -0.5px;
}

.emission-subtitle-premium {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  margin: 4px 0 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 7. Indicador de Etapas */
.emission-steps-indicator {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.emission-step {
  flex: 1 1;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.emission-step.active {
  background: rgba(255,255,255,0.4);
}

.emission-step.completed {
  background: #10b981;
}

.emission-step.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: step-shimmer 2s ease-in-out infinite;
}

@keyframes step-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 8. Body do Card Premium */
.emission-body-premium {
  padding: 24px;
}

/* 9. Seção de Campo com Label Premium */
.emission-field-section {
  margin-bottom: 24px;
  position: relative;
}

.emission-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.emission-label-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[data-theme="dark"] .emission-label-text {
  color: #e2e8f0;
}

.emission-label-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* 10. Badge de Campo (Obrigatório, Popular, etc) */
.emission-field-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.emission-field-badge.required {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.emission-field-badge.popular {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.emission-field-badge.new {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

/* 11. Campo de Placa Premium 3D */
.plate-premium-container {
  position: relative;
  perspective: 1000px;
}

.plate-premium-3d {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  padding: 16px;
  border: 3px solid #1e293b;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.15),
    inset 0 2px 0 rgba(255,255,255,0.8),
    inset 0 -2px 0 rgba(0,0,0,0.1);
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.plate-premium-3d:hover {
  transform: rotateX(5deg) rotateY(-2deg);
}

.plate-premium-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1e40af;
}

.plate-premium-country {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plate-premium-country img {
  width: 28px;
  height: 20px;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.plate-premium-country span {
  font-size: 14px;
  font-weight: 800;
  color: #1e40af;
  letter-spacing: 1px;
}

.plate-premium-mercosul {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* 12. Input de Placa Premium */
.plate-premium-input {
  width: 100%;
  text-align: center;
  font-family: 'FE-Schrift', 'Oswald', sans-serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 8px;
  color: #1e293b;
  background: transparent;
  border: none;
  outline: none;
  padding: 8px 0;
  text-transform: uppercase;
  caret-color: #3b82f6;
}

.plate-premium-input::placeholder {
  color: #94a3b8;
  letter-spacing: 8px;
}

/* 13. Indicador de Caracteres */
.plate-char-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.plate-char-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: all 0.3s ease;
}

.plate-char-dot.filled {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  transform: scale(1.2);
}

.plate-char-dot.current {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  animation: char-pulse 1s ease-in-out infinite;
}

@keyframes char-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* 14. Status de Validação da Placa */
.plate-validation-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.plate-validation-status.valid {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.plate-validation-status.invalid {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.plate-validation-status.typing {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* 15. Placas Recentes Premium */
.recent-plates-section {
  margin-top: 16px;
}

.recent-plates-title {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.recent-plates-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recent-plate-chip {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: 'FE-Schrift', 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.recent-plate-chip:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .recent-plate-chip {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  border-color: #475569;
  color: #e2e8f0;
}

/* 16. Select Premium com Ícone */
.select-premium-wrapper {
  position: relative;
}

.select-premium {
  width: 100%;
  padding: 16px 48px 16px 48px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.select-premium:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

.select-premium:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 4px 20px rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .select-premium {
  background: linear-gradient(145deg, #334155 0%, #1e293b 100%);
  border-color: #475569;
  color: #e2e8f0;
}

.select-premium-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  pointer-events: none;
}

.select-premium-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 12px;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.select-premium:focus + .select-premium-arrow,
.select-premium:hover + .select-premium-arrow {
  color: #3b82f6;
}

/* 17. Grid Premium de Opções */
.emission-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .emission-options-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* 18. Card de Opção com Preview */
.emission-option-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.emission-option-card:hover {
  border-color: #3b82f6;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

.emission-option-card.selected {
  border-color: #3b82f6;
  background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
}

.emission-option-card.selected::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

[data-theme="dark"] .emission-option-card {
  background: linear-gradient(145deg, #334155 0%, #1e293b 100%);
  border-color: #475569;
}

[data-theme="dark"] .emission-option-card.selected {
  background: linear-gradient(145deg, #1e3a8a 0%, #1e40af 100%);
  border-color: #3b82f6;
}

.emission-option-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.emission-option-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

[data-theme="dark"] .emission-option-title {
  color: #f1f5f9;
}

.emission-option-desc {
  font-size: 12px;
  color: #64748b;
}

.emission-option-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

/* 19. Divisor Decorativo */
.emission-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.emission-divider-line {
  flex: 1 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.emission-divider-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 12px;
}

[data-theme="dark"] .emission-divider-line {
  background: linear-gradient(90deg, transparent, #475569, transparent);
}

[data-theme="dark"] .emission-divider-icon {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  color: #94a3b8;
}

/* 20. Dicas Animadas */
.emission-tips-container {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .emission-tips-container {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
  border-color: rgba(251, 191, 36, 0.3);
}

.emission-tips-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: tips-shine 3s ease-in-out infinite;
}

@keyframes tips-shine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.emission-tip-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.emission-tip-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

.emission-tip-title {
  font-size: 14px;
  font-weight: 700;
  color: #92400e;
}

[data-theme="dark"] .emission-tip-title {
  color: #fbbf24;
}

.emission-tip-text {
  font-size: 13px;
  color: #a16207;
  line-height: 1.5;
}

[data-theme="dark"] .emission-tip-text {
  color: #fcd34d;
}

/* 21. Botão de Emissão Premium */
.btn-emission-premium {
  width: 100%;
  padding: 20px 32px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow:
    0 10px 30px rgba(16, 185, 129, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -3px 0 rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

.btn-emission-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.btn-emission-premium:hover::before {
  left: 100%;
}

.btn-emission-premium:hover {
  transform: translateY(-3px);
  box-shadow:
    0 15px 40px rgba(16, 185, 129, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -3px 0 rgba(0,0,0,0.1);
}

.btn-emission-premium:active {
  transform: translateY(1px);
  box-shadow:
    0 5px 20px rgba(16, 185, 129, 0.4),
    inset 0 3px 10px rgba(0,0,0,0.2);
}

.btn-emission-premium:disabled {
  background: linear-gradient(135deg, #64748b 0%, #475569 50%, #334155 100%);
  cursor: not-allowed;
  box-shadow: 0 5px 15px rgba(100, 116, 139, 0.3);
  transform: none;
}

.btn-emission-premium:disabled::before {
  display: none;
}

/* 22. Ícone do Botão Animado */
.btn-emission-icon {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.btn-emission-premium:hover .btn-emission-icon {
  transform: rotate(10deg) scale(1.1);
}

/* 23. Indicador de Créditos no Botão */
.btn-credit-indicator {
  background: rgba(0,0,0,0.2);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 24. Loading no Botão Premium */
.btn-emission-loading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-emission-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: btn-spin 1s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.btn-emission-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: rgba(255,255,255,0.5);
  border-radius: 0 0 16px 16px;
  transition: width 0.3s ease;
}

/* 25. Cards de Tipo de Documento */
.doc-type-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .doc-type-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.doc-type-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.doc-type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.doc-type-card.selected {
  border-color: transparent;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.doc-type-card.selected .doc-type-name,
.doc-type-card.selected .doc-type-desc {
  color: white;
}

[data-theme="dark"] .doc-type-card {
  background: linear-gradient(145deg, #334155 0%, #1e293b 100%);
  border-color: #475569;
}

.doc-type-icon-wrapper {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all 0.3s ease;
}

.doc-type-card.selected .doc-type-icon-wrapper {
  background: rgba(255,255,255,0.2);
}

.doc-type-name {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

[data-theme="dark"] .doc-type-name {
  color: #f1f5f9;
}

.doc-type-desc {
  font-size: 11px;
  color: #64748b;
}

.doc-type-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

/* 26. Seção de Info do Documento */
.doc-info-section {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #93c5fd;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}

[data-theme="dark"] .doc-info-section {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(29, 78, 216, 0.1) 100%);
  border-color: rgba(59, 130, 246, 0.3);
}

.doc-info-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.doc-info-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

.doc-info-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e40af;
}

[data-theme="dark"] .doc-info-title {
  color: #60a5fa;
}

.doc-info-text {
  font-size: 13px;
  color: #1d4ed8;
  line-height: 1.5;
}

[data-theme="dark"] .doc-info-text {
  color: #93c5fd;
}

/* 27. Resumo da Emissão */
.emission-summary {
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}

[data-theme="dark"] .emission-summary {
  background: linear-gradient(145deg, #334155 0%, #1e293b 100%);
  border-color: #475569;
}

.emission-summary-title {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.emission-summary-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.emission-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background: white;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

[data-theme="dark"] .emission-summary-item {
  background: #1e293b;
  border-color: #475569;
}

.emission-summary-label {
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.emission-summary-value {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

[data-theme="dark"] .emission-summary-value {
  color: #f1f5f9;
}

/* 28. Animações de Entrada */
.emission-fade-in {
  animation: emissionFadeIn 0.5s ease forwards;
}

@keyframes emissionFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.emission-slide-up {
  animation: emissionSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes emissionSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 29. Stagger Animation Delays */
.emission-stagger-1 { animation-delay: 0.1s; }
.emission-stagger-2 { animation-delay: 0.2s; }
.emission-stagger-3 { animation-delay: 0.3s; }
.emission-stagger-4 { animation-delay: 0.4s; }
.emission-stagger-5 { animation-delay: 0.5s; }

/* 30. Hover Glow Effect */
.emission-hover-glow {
  transition: all 0.3s ease;
}

.emission-hover-glow:hover {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* 31. Focus Ring Premium */
.emission-focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* 32. Quick Action Buttons */
.emission-quick-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.emission-quick-btn {
  flex: 1 1;
  padding: 12px 16px;
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.emission-quick-btn:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

[data-theme="dark"] .emission-quick-btn {
  background: linear-gradient(145deg, #334155 0%, #1e293b 100%);
  border-color: #475569;
  color: #94a3b8;
}

/* 33. Switch Toggle Premium */
.emission-switch-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 20px;
}

[data-theme="dark"] .emission-switch-container {
  background: linear-gradient(145deg, #334155 0%, #1e293b 100%);
  border-color: #475569;
}

.emission-switch-label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.emission-switch-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.emission-switch-text {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

[data-theme="dark"] .emission-switch-text {
  color: #e2e8f0;
}

.emission-switch-desc {
  font-size: 12px;
  color: #64748b;
}

.emission-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  background: #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.emission-toggle.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.emission-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.emission-toggle.active::after {
  left: 27px;
}

/* 34. Footer Info Premium */
.emission-footer-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  border-top: 1px solid #e2e8f0;
  margin-top: 24px;
}

[data-theme="dark"] .emission-footer-info {
  border-top-color: #475569;
}

.emission-footer-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
}

.emission-footer-item i {
  color: #10b981;
}

/* 35. Confetti Success Animation */
.emission-success-confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* Responsive Adjustments for Premium Emission */
@media (max-width: 480px) {
  .emission-header-premium {
    padding: 16px;
    border-radius: 20px 20px 0 0;
  }

  .emission-icon-premium {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .emission-title-premium {
    font-size: 18px;
  }

  .emission-body-premium {
    padding: 16px;
  }

  .plate-premium-input {
    font-size: 36px;
    letter-spacing: 6px;
  }

  .btn-emission-premium {
    padding: 16px 24px;
    font-size: 14px;
  }

  .emission-quick-actions {
    flex-wrap: wrap;
  }

  .emission-quick-btn {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc(50% - 5px);
  }
}

