/* ==========================================================================
   SCFP — Sistema de Controle Financeiro Pessoal
   Design System & Cyber-Finance Styles
   Powered by JimSoft®
   ========================================================================== */

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

:root {
  /* Brand Core Colors (Logo Palette) */
  --sc-primary: #10E760;
  --sc-primary-hover: #0DCB52;
  --sc-primary-glow: rgba(16, 231, 96, 0.35);
  
  --sc-secondary: #00A3FF;
  --sc-secondary-hover: #0088D6;
  --sc-secondary-glow: rgba(0, 163, 255, 0.35);

  --sc-accent-lime: #A3E635;
  --sc-accent-amber: #FBBF24;
  --sc-accent-red: #FF4D4D;
  --sc-accent-purple: #A855F7;

  /* Dark UI Backgrounds & Obsidian Surfaces */
  --sc-bg: #06090E;
  --sc-bg-deep: #030508;
  --sc-surface: #0C1118;
  --sc-surface-card: #121824;
  --sc-surface-hover: #182130;
  --sc-surface-overlay: rgba(12, 17, 24, 0.85);

  /* Borders & Dividers */
  --sc-border: rgba(0, 163, 255, 0.14);
  --sc-border-green: rgba(16, 231, 96, 0.22);
  --sc-border-hover: rgba(0, 163, 255, 0.4);

  /* Typography */
  --sc-text: #F8FAFC;
  --sc-text-muted: #8E9FB5;
  --sc-text-sub: #BACCC4;

  /* Spacing & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --max-w: 1280px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow-green: 0 0 35px rgba(16, 231, 96, 0.25);
  --shadow-glow-blue: 0 0 35px rgba(0, 163, 255, 0.25);
}

/* Light Theme Variables & Overrides */
body.light-theme {
  --sc-bg: #F0F4F8;
  --sc-bg-deep: #E2E8F0;
  --sc-surface: #FFFFFF;
  --sc-surface-card: #FFFFFF;
  --sc-surface-hover: #F8FAFC;
  --sc-surface-overlay: rgba(255, 255, 255, 0.95);

  --sc-border: rgba(0, 163, 255, 0.22);
  --sc-border-green: rgba(16, 185, 129, 0.35);
  --sc-border-hover: rgba(0, 163, 255, 0.6);

  --sc-text: #0F172A;
  --sc-text-muted: #64748B;
  --sc-text-sub: #334155;

  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body.light-theme header.sc-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 163, 255, 0.2);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

body.light-theme .bg-grid-overlay {
  background-image: 
    linear-gradient(to right, rgba(0, 163, 255, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 231, 96, 0.06) 1px, transparent 1px);
}

body.light-theme .sc-card {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  border-color: rgba(226, 232, 240, 0.8);
}

body.light-theme .kpi-card {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  border-color: rgba(226, 232, 240, 0.8);
}

body.light-theme .kpi-value {
  color: #0F172A !important;
}

body.light-theme .trans-desc span:first-child {
  color: #0F172A;
}

body.light-theme .sc-card-title {
  color: #000000 !important;
}

.sc-main-title,
.sc-heading-dynamic,
.sc-card h3 {
  color: #FFFFFF;
  transition: color 0.25s ease;
}

.sc-main-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.light-theme .sc-main-title,
body.light-theme .sc-heading-dynamic,
body.light-theme .sc-card h3 {
  color: #000000 !important;
}

body.light-theme .settings-section {
  background: #F8FAFC;
  border-color: rgba(226, 232, 240, 0.9);
}

body.light-theme .settings-section-title {
  color: #0F172A;
}

body.light-theme .form-input, body.light-theme .form-select {
  background: #FFFFFF;
  color: #0F172A;
  border-color: #CBD5E1;
}

body.light-theme .modal-window {
  background: #FFFFFF;
  color: #0F172A;
  border-color: rgba(0, 163, 255, 0.3);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
}

body.light-theme .modal-title {
  color: #0F172A;
}

body.light-theme .credit-card-ui {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}

body.light-theme .sc-nav-pills {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(203, 213, 225, 0.8);
}

body.light-theme .sc-nav-pills button {
  color: #64748B;
}

body.light-theme .sc-nav-pills button.active {
  background: linear-gradient(135deg, rgba(16, 231, 96, 0.25), rgba(0, 163, 255, 0.25));
  color: #0F172A;
  font-weight: 700;
  border-color: rgba(16, 231, 96, 0.6);
}

body.light-theme h1, body.light-theme h2, body.light-theme h3 {
  color: #0F172A;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--sc-bg);
  color: var(--sc-text);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Grids & Ambient Glow Orbs */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 163, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 231, 96, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(140px);
}

.glow-orb-green {
  top: -120px;
  right: 5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(16, 231, 96, 0.18), transparent 70%);
}

.glow-orb-blue {
  top: 30%;
  left: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 163, 255, 0.16), transparent 70%);
}

.glow-orb-purple {
  bottom: 5%;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12), transparent 70%);
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Header & Navigation */
header.sc-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 9, 14, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sc-border);
  transition: all 0.3s ease;
}

.sc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}

.sc-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sc-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.sc-logo-img {
  height: 90px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(0, 163, 255, 0.45));
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sc-logo-img:hover {
  transform: scale(1.05);
}

.sc-powered-tag {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 0.7rem;
  color: var(--sc-text-muted);
  border-left: 1px solid var(--sc-border);
  padding-left: 10px;
}

.sc-powered-tag a {
  color: var(--sc-secondary);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.sc-powered-tag a:hover {
  color: var(--sc-primary);
}

.sc-nav-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(12, 17, 24, 0.7);
  padding: 5px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--sc-border);
  list-style: none;
}

.sc-nav-pills button {
  background: transparent;
  border: none;
  color: var(--sc-text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.sc-nav-pills button:hover {
  color: var(--sc-text);
  background: rgba(255, 255, 255, 0.05);
}

.sc-nav-pills button.active {
  background: linear-gradient(135deg, rgba(16, 231, 96, 0.2), rgba(0, 163, 255, 0.2));
  color: #FFFFFF;
  border: 1px solid rgba(16, 231, 96, 0.4);
  box-shadow: 0 0 16px rgba(16, 231, 96, 0.2);
}

.sc-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sc-primary) 0%, var(--sc-secondary) 100%);
  color: #06090E;
  font-weight: 700;
  box-shadow: 0 4px 18px var(--sc-primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 231, 96, 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(0, 163, 255, 0.15);
  color: var(--sc-secondary);
  border: 1px solid rgba(0, 163, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(0, 163, 255, 0.25);
  border-color: var(--sc-secondary);
  color: #FFF;
}

.btn-outline {
  background: transparent;
  color: var(--sc-text-muted);
  border: 1px solid var(--sc-border);
}

.btn-outline:hover {
  border-color: var(--sc-primary);
  color: var(--sc-text);
  background: rgba(16, 231, 96, 0.05);
}

.btn-danger {
  background: rgba(255, 77, 77, 0.15);
  color: var(--sc-accent-red);
  border: 1px solid rgba(255, 77, 77, 0.3);
}

.btn-danger:hover {
  background: var(--sc-accent-red);
  color: #FFF;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* Reminder Banner Alert */
.reminder-bar {
  background: linear-gradient(90deg, rgba(16, 231, 96, 0.12), rgba(0, 163, 255, 0.12));
  border-bottom: 1px solid rgba(16, 231, 96, 0.25);
  padding: 8px 0;
  font-size: 0.86rem;
}

.reminder-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reminder-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sc-primary);
  box-shadow: 0 0 10px var(--sc-primary);
  display: inline-block;
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 231, 96, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(16, 231, 96, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 231, 96, 0); }
}

/* KPI Metric Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.kpi-card {
  background: var(--sc-surface);
  border: 1px solid var(--sc-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
}

.kpi-card:hover {
  transform: translateY(-3px);
  border-color: var(--sc-secondary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

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

.kpi-card.green { --card-color: var(--sc-primary); }
.kpi-card.blue { --card-color: var(--sc-secondary); }
.kpi-card.red { --card-color: var(--sc-accent-red); }
.kpi-card.amber { --card-color: var(--sc-accent-amber); }

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

.kpi-title {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sc-text-muted);
}

.kpi-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--card-color, var(--sc-primary));
}

.kpi-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #FFF;
  letter-spacing: -0.02em;
}

.kpi-sub {
  font-size: 0.78rem;
  color: var(--sc-text-muted);
  margin-top: 4px;
}

/* Glass Card Containers */
.sc-card {
  background: var(--sc-surface);
  border: 1px solid var(--sc-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  position: relative;
  backdrop-filter: blur(12px);
}

.sc-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.sc-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFF;
}

.sc-card-title svg {
  color: var(--sc-primary);
}

/* Layout Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 24px;
}

/* Transactions Table & List */
.trans-table {
  width: 100%;
  border-collapse: collapse;
}

.trans-table th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--sc-text-muted);
  letter-spacing: 0.06em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--sc-border);
}

.trans-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  vertical-align: middle;
}

.trans-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.trans-desc {
  font-weight: 600;
  color: #FFF;
  display: flex;
  flex-direction: column;
}

.trans-sub {
  font-size: 0.75rem;
  color: var(--sc-text-muted);
  font-weight: normal;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.tag-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(0, 163, 255, 0.12);
  color: var(--sc-secondary);
  border: 1px solid rgba(0, 163, 255, 0.25);
}

.status-badge {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-confirmed {
  background: rgba(16, 231, 96, 0.12);
  color: var(--sc-primary);
  border: 1px solid rgba(16, 231, 96, 0.3);
}

.status-pending {
  background: rgba(251, 191, 36, 0.12);
  color: var(--sc-accent-amber);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-late {
  background: rgba(255, 77, 77, 0.12);
  color: var(--sc-accent-red);
  border: 1px solid rgba(255, 77, 77, 0.3);
}

.val-income {
  color: var(--sc-primary);
  font-weight: 700;
}

.val-expense {
  color: var(--sc-accent-red);
  font-weight: 700;
}

.val-transfer {
  color: var(--sc-secondary);
  font-weight: 700;
}

/* Realistic Credit Cards Grid */
.cards-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.credit-card-ui {
  background: linear-gradient(135deg, #1A1F2C 0%, #0A0D14 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.credit-card-ui::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, var(--cc-glow, rgba(0, 163, 255, 0.3)), transparent 70%);
  border-radius: 50%;
}

.cc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cc-chip {
  width: 38px;
  height: 28px;
  background: linear-gradient(135deg, #E2B961, #C7952B);
  border-radius: 5px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
}

.cc-brand {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #FFF;
}

.cc-body {
  margin: 16px 0 8px;
}

.cc-limit-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 8px 0;
}

.cc-limit-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sc-primary), var(--sc-secondary));
  border-radius: var(--radius-full);
}

/* Progress Meters (Budgets & Goals) */
.progress-box {
  margin-bottom: 18px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.fill-green { background: linear-gradient(90deg, #10E760, #3BF782); }
.fill-amber { background: linear-gradient(90deg, #FBBF24, #F59E0B); }
.fill-red { background: linear-gradient(90deg, #EF4444, #DC2626); }
.fill-blue { background: linear-gradient(90deg, #00A3FF, #38BDF8); }

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 8, 0.82);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-window {
  background: var(--sc-surface);
  border: 1px solid var(--sc-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFF;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--sc-text-muted);
  cursor: pointer;
  font-size: 1.4rem;
  padding: 4px;
}

.btn-close:hover { color: #FFF; }

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sc-text-muted);
  margin-bottom: 6px;
}

.form-input, .form-select {
  width: 100%;
  background: var(--sc-bg);
  border: 1px solid var(--sc-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: #FFF;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus {
  border-color: var(--sc-primary);
  box-shadow: 0 0 10px var(--sc-primary-glow);
}

/* Tab Content Transitions */
.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

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

/* Settings & Customization Panel */
.settings-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--sc-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.settings-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.settings-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-table {
  width: 100%;
  border-collapse: collapse;
}

.settings-table th {
  text-align: left;
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--sc-text-muted);
  letter-spacing: 0.05em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--sc-border);
}

.settings-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  vertical-align: middle;
}

.settings-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
}

.btn-icon {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--sc-border);
  color: var(--sc-text-sub);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
  border-color: var(--sc-primary);
}

.btn-icon-danger:hover {
  background: rgba(255, 77, 77, 0.2);
  color: var(--sc-accent-red);
  border-color: var(--sc-accent-red);
}

/* Modern Interactive Emoji Picker System */
.emoji-picker-container {
  position: relative;
  width: 100%;
}

.emoji-selector-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sc-bg);
  border: 1px solid var(--sc-border);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  transition: border-color 0.2s;
}

.emoji-selector-bar:focus-within {
  border-color: var(--sc-primary);
  box-shadow: 0 0 10px var(--sc-primary-glow);
}

.emoji-preview-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(0, 163, 255, 0.12);
  border: 2px solid var(--sc-primary);
  border-radius: 12px;
  font-size: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 12px var(--sc-primary-glow);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
}

.emoji-preview-badge:hover {
  transform: scale(1.08);
  background: rgba(0, 163, 255, 0.25);
}

.emoji-quick-strip {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}

.emoji-quick-strip::-webkit-scrollbar {
  display: none;
}

.emoji-pill-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--sc-border);
  border-radius: 8px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.emoji-pill-btn:hover {
  background: rgba(0, 163, 255, 0.15);
  border-color: var(--sc-primary);
  transform: scale(1.18);
}

.emoji-pill-btn.active {
  background: rgba(0, 163, 255, 0.3);
  border-color: var(--sc-primary);
  box-shadow: 0 0 8px var(--sc-primary-glow);
}

.btn-emoji-toggle {
  height: 34px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--sc-border);
  border-radius: 8px;
  color: var(--sc-text-main);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  user-select: none;
}

.btn-emoji-toggle:hover, .btn-emoji-toggle.active {
  background: rgba(0, 163, 255, 0.2);
  border-color: var(--sc-primary);
  color: #FFF;
}

.emoji-drawer {
  background: #0B101B;
  border: 1px solid var(--sc-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-top: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: none;
  animation: fadeIn 0.2s ease;
}

.emoji-drawer.open {
  display: block;
}

.emoji-search-box {
  width: 100%;
  background: var(--sc-bg);
  border: 1px solid var(--sc-border);
  border-radius: 8px;
  padding: 8px 12px;
  color: #FFF;
  font-size: 0.85rem;
  outline: none;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}

.emoji-search-box:focus {
  border-color: var(--sc-primary);
  box-shadow: 0 0 8px var(--sc-primary-glow);
}

.emoji-cat-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--sc-border);
  scrollbar-width: none;
}

.emoji-cat-tabs::-webkit-scrollbar {
  display: none;
}

.emoji-cat-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--sc-text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.emoji-cat-tab:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.06);
}

.emoji-cat-tab.active {
  background: var(--sc-primary);
  color: #06090E;
  font-weight: 700;
}

.emoji-grid-body {
  max-height: 190px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
  gap: 6px;
  padding: 4px 2px;
}

.emoji-grid-item {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.12s, background 0.12s, border-color 0.12s;
  user-select: none;
}

.emoji-grid-item:hover {
  transform: scale(1.25);
  background: rgba(0, 163, 255, 0.2);
  border-color: var(--sc-primary);
}

.emoji-grid-item.active {
  background: rgba(0, 163, 255, 0.35);
  border-color: var(--sc-primary);
  box-shadow: 0 0 10px var(--sc-primary-glow);
}

/* Light Mode Overrides for Emoji Picker */
body.light-mode .emoji-selector-bar {
  background: #FFFFFF;
  border-color: #E2E8F0;
}
body.light-mode .emoji-preview-badge {
  background: rgba(0, 136, 204, 0.1);
  border-color: #0088CC;
  box-shadow: 0 2px 10px rgba(0, 136, 204, 0.2);
}
body.light-mode .emoji-pill-btn {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
body.light-mode .emoji-pill-btn:hover {
  background: #EFF6FF;
  border-color: #0088CC;
}
body.light-mode .emoji-pill-btn.active {
  background: #DBEAFE;
  border-color: #0088CC;
}
body.light-mode .btn-emoji-toggle {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #334155;
}
body.light-mode .btn-emoji-toggle:hover, body.light-mode .btn-emoji-toggle.active {
  background: #E2E8F0;
  border-color: #0088CC;
  color: #0F172A;
}
body.light-mode .emoji-drawer {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}
body.light-mode .emoji-search-box {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #0F172A;
}
body.light-mode .emoji-cat-tab {
  color: #64748B;
}
body.light-mode .emoji-cat-tab:hover {
  color: #0F172A;
  background: #F1F5F9;
}
body.light-mode .emoji-cat-tab.active {
  background: #0088CC;
  color: #FFFFFF;
}
body.light-mode .emoji-grid-item {
  background: #F8FAFC;
}
body.light-mode .emoji-grid-item:hover {
  background: #E0F2FE;
  border-color: #0088CC;
}
body.light-mode .emoji-grid-item.active {
  background: #BAE6FD;
  border-color: #0088CC;
}

/* Privacy Mode Hidden Text */
.privacy-hidden {
  filter: blur(8px);
  user-select: none;
  transition: filter 0.2s ease;
}

/* ==========================================================================
   SCFP — Sistema de Autenticação & Tela de Login
   ========================================================================== */

.auth-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(3, 5, 8, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

body.light-theme .auth-gate-overlay {
  background: rgba(240, 244, 248, 0.95);
}

.auth-gate-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.auth-card {
  max-width: 440px;
  width: 100%;
  background: var(--sc-surface-card);
  border: 1px solid var(--sc-border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 163, 255, 0.12);
  position: relative;
  overflow: hidden;
  text-align: center;
  animation: authScaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-theme .auth-card {
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 0 30px rgba(0, 163, 255, 0.08);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sc-primary), var(--sc-secondary), var(--sc-accent-purple));
}

.auth-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.auth-logo-img {
  height: 90px;
  object-fit: contain;
  margin-bottom: 14px;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 231, 96, 0.1);
  border: 1px solid rgba(16, 231, 96, 0.3);
  color: var(--sc-primary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sc-text);
  margin-top: 14px;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: var(--sc-text-muted);
  margin-bottom: 24px;
  line-height: 1.4;
}

.auth-error-badge {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(255, 77, 77, 0.12);
  border: 1px solid rgba(255, 77, 77, 0.35);
  color: #FF6B6B;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  margin-bottom: 18px;
  text-align: left;
}

.auth-error-badge.show {
  display: flex;
  animation: shakeAuth 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.auth-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-password-wrapper input {
  padding-right: 42px;
}

.btn-toggle-pwd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--sc-text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.btn-toggle-pwd:hover {
  color: var(--sc-text);
}

.auth-options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 24px 0;
  font-size: 0.85rem;
  color: var(--sc-text-sub);
}

.auth-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}

.auth-checkbox-label input[type="checkbox"] {
  accent-color: var(--sc-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.auth-default-hint {
  font-size: 0.76rem;
  color: var(--sc-text-muted);
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--sc-border);
}

body.light-theme .auth-default-hint {
  background: rgba(0, 0, 0, 0.02);
}

@keyframes authScaleUp {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes shakeAuth {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(3px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Responsive */
@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .sc-nav-pills {
    overflow-x: auto;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .sc-nav {
    flex-wrap: wrap;
  }
  .sc-nav-pills {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    padding: 6px 4px;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .sc-logo-img {
    height: 75px;
  }
  .sc-powered-tag {
    margin-left: 0;
  }
  .auth-card {
    padding: 30px 20px;
  }
}



