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

:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --success: #34a853;
  --warning: #fbbc04;
  --danger: #ea4335;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f4;
  --gray-200: #e8eaed;
  --gray-300: #dadce0;
  --gray-500: #9aa0a6;
  --gray-700: #5f6368;
  --gray-900: #202124;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
  --radius: 8px;
  --radius-lg: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--gray-100);
  color: var(--gray-900);
  line-height: 1.5;
  min-height: 100vh;
}

.hidden { display: none !important; }

#navbar {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 8px;
  margin-left: 48px;
}

.nav-link {
  text-decoration: none;
  color: var(--gray-700);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.2s;
}

.nav-link:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.nav-link.active {
  background: var(--primary);
  color: var(--white);
}

.nav-icon {
  margin-right: 4px;
}

/* SVG Navigation Icons */
.nav-icon-svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  flex-shrink: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-text {
  font-size: 0.95rem;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: var(--gray-700);
  text-decoration: none;
  transition: all 0.15s;
  font-weight: 500;
}

.dropdown-item:hover {
  background: var(--gray-50);
  color: var(--primary);
}

.dropdown-item.active {
  background: var(--primary);
  color: var(--white);
}

.dropdown-icon {
  margin-right: 10px;
  font-size: 1.1rem;
}

.nav-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

#user-name {
  color: var(--gray-700);
  font-weight: 500;
}

.btn-text {
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-text:hover {
  color: var(--danger);
}

#main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.page { display: none; }
.page.active { display: block; }

.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.page-header h1 {
  font-size: 1.75rem;
  color: var(--gray-900);
}

.btn-back {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1rem;
  cursor: pointer;
  padding: 8px 0;
}

.btn-back:hover {
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background: var(--gray-300);
}

.btn-block {
  width: 100%;
}

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

.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.logo-large {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 8px;
}

.login-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
}

.login-form {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.login-footer {
  text-align: center;
  margin-top: 20px;
  color: var(--gray-500);
}

.login-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

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

.link-forgot {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.link-forgot:hover {
  text-decoration: underline;
}

.reset-info {
  text-align: center;
  margin-bottom: 20px;
  color: var(--gray-700);
}

.filters {
  margin-left: auto;
}

.filters select {
  padding: 8px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: var(--white);
}

.dashboard-alerts {
  margin-bottom: 24px;
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-weight: 500;
}

.alert-item:last-child {
  margin-bottom: 0;
}

.alert-danger {
  background: #fce8e6;
  border-left: 4px solid var(--danger);
  color: #c62828;
}

.alert-warning {
  background: #fef7e0;
  border-left: 4px solid var(--warning);
  color: #f57f17;
}

.alert-info {
  background: #e8f0fe;
  border-left: 4px solid var(--primary);
  color: #1565c0;
}

.alert-icon {
  font-size: 1.5rem;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.alert-text {
  font-weight: 400;
  font-size: 0.9rem;
  opacity: 0.9;
}

.dashboard-announcements {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  color: var(--white);
}

.dashboard-announcements h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.announcements-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.announcement-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.announcement-item:hover {
  background: rgba(255, 255, 255, 0.25);
}

.announcement-title {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.announcement-text {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
}

.announcement-date {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 8px;
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.summary-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.summary-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.summary-pending .summary-icon {
  background: #fff3cd;
}

.summary-overdue .summary-icon {
  background: #fce8e6;
}

.summary-total .summary-icon {
  background: #e8f0fe;
}

.summary-info {
  display: flex;
  flex-direction: column;
}

.summary-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.summary-label {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.invoices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.invoice-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.invoice-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.invoice-number {
  font-weight: 600;
  color: var(--gray-900);
}

.invoice-date {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.badge-pendente {
  background: #fff3cd;
  color: #856404;
}

.badge-pago {
  background: #d4edda;
  color: #155724;
}

.badge-vencido {
  background: #f8d7da;
  color: #721c24;
}

.badge-aberto {
  background: #cce5ff;
  color: #004085;
}

.badge-fechado {
  background: var(--gray-200);
  color: var(--gray-700);
}

.invoice-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.invoice-due {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.invoice-detail-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.invoice-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 24px;
}

.invoice-detail-info h2 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.invoice-detail-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.invoice-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.detail-item label {
  display: block;
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.detail-item span {
  font-weight: 500;
  color: var(--gray-900);
}

.invoice-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

.payment-methods {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
  box-shadow: var(--shadow);
}

.payment-methods h3 {
  margin-bottom: 16px;
  color: var(--gray-900);
  font-size: 1.1rem;
}

.payment-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: 12px;
}

.payment-tab {
  padding: 10px 20px;
  border: none;
  background: var(--gray-100);
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--gray-700);
}

.payment-tab:hover {
  background: var(--gray-200);
}

.payment-tab.active {
  background: var(--primary);
  color: var(--white);
}

.payment-content {
  padding: 16px 0;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.payment-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
}

.payment-info h4 {
  font-size: 1.1rem;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.payment-info p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.boleto-action {
  margin-top: 16px;
}

.no-option {
  color: var(--gray-500);
  text-align: center;
  padding: 24px;
}

.paid-notice {
  background: #d4edda;
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-top: 24px;
}

.paid-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.paid-notice h3 {
  color: #155724;
  margin-bottom: 8px;
}

.paid-notice p {
  color: #155724;
  margin-bottom: 16px;
}

.desbloqueio-container {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.desbloqueio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.desbloqueio-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.desbloqueio-card h2 {
  color: var(--gray-900);
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.desbloqueio-card > p {
  color: var(--gray-500);
  margin-bottom: 24px;
  line-height: 1.6;
}

.desbloqueio-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-700);
}

.info-icon {
  font-size: 1.2rem;
}

.desbloqueio-form {
  text-align: left;
}

.desbloqueio-result {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
}

.desbloqueio-result.success {
  background: #d4edda;
  color: #155724;
}

.desbloqueio-result.error {
  background: #f8d7da;
  color: #721c24;
}

.desbloqueio-result h3 {
  margin-bottom: 8px;
}

.desbloqueio-result p {
  margin-bottom: 4px;
}

.copy-code {
  background: var(--gray-100);
  padding: 16px;
  border-radius: var(--radius);
  margin-top: 16px;
}

.copy-code label {
  display: block;
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.copy-code-input {
  display: flex;
  gap: 8px;
}

.copy-code-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: monospace;
  font-size: 0.9rem;
}

.copy-code-input button {
  padding: 10px 16px;
}

.tickets-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ticket-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-card:hover {
  transform: translateX(4px);
}

.ticket-info h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.ticket-meta {
  color: var(--gray-500);
  font-size: 0.85rem;
}

.ticket-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 600px;
}

.messages-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 400px;
  max-height: 500px;
  overflow-y: auto;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.message {
  margin-bottom: 16px;
  max-width: 80%;
}

.message.sent {
  margin-left: auto;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  position: relative;
}

.message.received .message-bubble {
  background: var(--gray-100);
}

.message.sent .message-bubble {
  background: var(--primary);
  color: var(--white);
}

.message-time {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 4px;
  text-align: right;
}

.message.sent .message-time {
  color: rgba(255,255,255,0.7);
}

.message-form {
  display: flex;
  gap: 12px;
  background: var(--white);
  padding: 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.message-form textarea {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  resize: none;
  min-height: 48px;
  max-height: 120px;
}

.loading {
  text-align: center;
  padding: 40px;
  color: var(--gray-500);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}

.empty-state h3 {
  margin-bottom: 8px;
  color: var(--gray-700);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-500);
  cursor: pointer;
}

#modal-body {
  padding: 24px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  animation: slideUp 0.3s ease;
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--danger);
}

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

.trafego-container {
  max-width: 900px;
}

.trafego-filters {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.trafego-filters .form-group {
  margin-bottom: 0;
  min-width: 200px;
  flex: 1;
}

.trafego-resumo {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.trafego-resumo h3 {
  margin-bottom: 16px;
  color: var(--gray-900);
}

.trafego-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--gray-50);
}

.stat-card.download {
  background: #e3f2fd;
}

.stat-card.upload {
  background: #fce4ec;
}

.stat-card.total {
  background: #e8f5e9;
}

.stat-icon {
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
}

.stat-card.download .stat-icon {
  color: #1976d2;
}

.stat-card.upload .stat-icon {
  color: #c2185b;
}

.stat-card.total .stat-icon {
  color: #388e3c;
}

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

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
}

.trafego-periodo-info {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-500);
  font-size: 0.9rem;
}

.trafego-lista {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.trafego-table th,
.trafego-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.trafego-table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.trafego-table tbody tr:hover {
  background: var(--gray-50);
}

.trafego-table td.download {
  color: #1976d2;
}

.trafego-table td.upload {
  color: #c2185b;
}

.trafego-table td.total {
  color: #388e3c;
  font-weight: 600;
}

.trafego-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--gray-500);
}

@media (max-width: 768px) {
  #navbar {
    padding: 0 16px;
  }
  
  .nav-links {
    margin-left: 24px;
  }
  
  .nav-link {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  
  #main-content {
    padding: 16px;
  }
  
  .invoices-grid {
    grid-template-columns: 1fr;
  }
  
  .invoice-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .ticket-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .message {
    max-width: 90%;
  }
}

.online-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.online-status .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-400);
  animation: pulse 2s infinite;
}

.online-status.online .status-dot {
  background: var(--success);
}

.online-status.offline .status-dot {
  background: var(--gray-400);
  animation: none;
}

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

.conversation-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.conv-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  flex-shrink: 0;
}

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

.conv-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.conv-preview {
  font-size: 0.9rem;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.conv-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--gray-400);
}

.conv-branch {
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 4px;
}

.conv-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.unread-badge {
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
}

.conv-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
}

.conv-status .status-dot.active {
  background: var(--success);
}

.selection-container {
  max-width: 600px;
  margin: 0 auto;
}

.selection-subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.selection-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.selection-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}

.selection-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.selection-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: var(--gray-100);
  flex-shrink: 0;
}

.department-card .selection-icon {
  color: var(--white);
}

.selection-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.selection-info p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.selection-info .phone {
  color: var(--primary);
  font-weight: 500;
}

.skip-selection {
  text-align: center;
  margin-top: 24px;
}

#page-chat {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 64px - 48px);
  max-height: 700px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.chat-header .btn-back {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--gray-700);
}

.chat-info {
  flex: 1;
}

.chat-info h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.chat-department {
  font-size: 0.8rem;
  color: var(--white);
  padding: 2px 10px;
  border-radius: 12px;
  display: inline-block;
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: 0.85rem;
}

.typing-indicator {
  display: flex;
  gap: 3px;
}

.typing-indicator::before,
.typing-indicator::after,
.typing-indicator span {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gray-400);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-indicator::after {
  animation-delay: 0.2s;
}

.typing-indicator span {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-welcome {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-500);
}

.chat-welcome-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.chat-welcome-sub {
  font-size: 0.9rem;
  margin-top: 8px;
}

.chat-message {
  max-width: 75%;
  display: flex;
  flex-direction: column;
}

.chat-message.sent {
  align-self: flex-end;
}

.chat-message.received {
  align-self: flex-start;
}

.chat-message .message-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.4;
  word-break: break-word;
}

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

.chat-message.received .message-bubble {
  background: var(--white);
  color: var(--gray-900);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow);
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 0 8px;
}

.chat-message.sent .message-meta {
  justify-content: flex-end;
}

.message-time {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.message-status {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.chat-message.sent.read .message-status {
  color: var(--primary);
}

.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.chat-form textarea {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 24px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: none;
  max-height: 120px;
  min-height: 44px;
}

.chat-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.send-icon {
  font-size: 1.2rem;
}

.chat-input-area {
  flex: 1;
}

.chat-input-area textarea {
  width: 100%;
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}

.btn-icon.btn-cancel {
  background: var(--danger-light, #fee2e2);
  color: var(--danger);
}

.btn-icon.btn-cancel:hover {
  background: var(--danger);
  color: white;
}

.btn-icon.btn-send-audio {
  background: var(--primary);
  color: white;
}

.btn-icon.btn-send-audio:hover {
  background: var(--primary-dark);
}

.pending-files {
  padding: 8px 16px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pending-file {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 0.85rem;
}

.pending-file-icon {
  font-size: 1rem;
}

.pending-file-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pending-file-size {
  color: var(--gray-500);
  font-size: 0.75rem;
}

.pending-file-remove {
  border: none;
  background: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  line-height: 1;
}

.pending-file-remove:hover {
  color: var(--danger);
}

.recording-ui {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  padding: 8px 16px;
  background: var(--gray-100);
  border-radius: 24px;
}

.recording-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.recording-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--danger);
  animation: pulse-recording 1s infinite;
}

@keyframes pulse-recording {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

#recording-time {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
}

.message-attachments {
  margin-bottom: 8px;
}

.attachment-audio {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.attachment-audio audio {
  width: 100%;
  max-width: 250px;
  height: 40px;
}

.attachment-audio .attachment-name {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.attachment-image {
  margin-bottom: 4px;
}

.attachment-image img {
  max-width: 200px;
  max-height: 200px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s;
}

.attachment-image img:hover {
  transform: scale(1.02);
}

.attachment-video {
  margin-bottom: 4px;
}

.attachment-video video {
  max-width: 250px;
  max-height: 200px;
  border-radius: var(--radius);
}

.attachment-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.05);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  margin-bottom: 4px;
}

.chat-message.sent .attachment-file {
  background: rgba(255,255,255,0.2);
}

.attachment-file:hover {
  background: rgba(0,0,0,0.1);
}

.attachment-icon {
  font-size: 1.5rem;
}

.attachment-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.attachment-name {
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.attachment-size {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.chat-message.sent .attachment-size {
  color: rgba(255,255,255,0.7);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  #page-chat {
    height: calc(100vh - 64px);
    max-height: none;
    border-radius: 0;
    margin: -16px;
  }

  .chat-message {
    max-width: 85%;
  }

  .selection-card {
    padding: 16px;
  }

  .selection-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
}

/* Message Notification Popup */
.notification-popup {
  position: fixed;
  top: 80px;
  right: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 360px;
  z-index: 9999;
  animation: slideInRight 0.3s ease-out;
  cursor: pointer;
  border-left: 4px solid var(--primary);
}

.notification-popup.success {
  border-left-color: var(--success);
}

.notification-popup.warning {
  border-left-color: var(--warning);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.notification-popup.closing {
  animation: slideOutRight 0.3s ease-out forwards;
}

.notification-popup-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: white;
}

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

.notification-popup-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--gray-900);
}

.notification-popup-message {
  font-size: 0.85rem;
  color: var(--gray-700);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification-popup-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--gray-500);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  margin: -8px -8px -8px 0;
}

.notification-popup-close:hover {
  color: var(--gray-900);
}

/* Badge for unread messages */
.unread-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Payment Methods Page */
.pagamentos-container {
  max-width: 1000px;
  margin: 0 auto;
}

.pagamentos-intro {
  text-align: center;
  margin-bottom: 32px;
  color: var(--gray-700);
  font-size: 1.1rem;
}

.pagamentos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.pagamento-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.pagamento-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 16px;
  font-weight: bold;
}

.pagamento-icon.pix {
  background: linear-gradient(135deg, #32bcad, #00d4aa);
  color: white;
  font-size: 1rem;
}

.pagamento-icon.boleto {
  background: linear-gradient(135deg, #ff9500, #ff6b00);
  color: white;
}

.pagamento-icon.cartao {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.pagamento-icon.transferencia {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

.pagamento-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.pagamento-card > p {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.pagamento-benefits {
  list-style: none;
  margin-bottom: 20px;
  padding: 0;
}

.pagamento-benefits li {
  display: flex;
  align-items: center;
  padding: 6px 0;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.pagamento-benefits li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
  margin-right: 10px;
}

.pagamento-info {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: auto;
}

.pagamento-info strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.copy-field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.copy-field span {
  flex: 1;
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--gray-900);
}

.btn-copy {
  background: var(--primary);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-copy:hover {
  background: var(--primary-dark);
}

.bank-details {
  background: var(--white);
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.bank-details p {
  margin: 4px 0;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.pagamentos-footer {
  margin-top: 32px;
}

.pagamentos-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #e8f4fd;
  border: 1px solid #b6d4fe;
  border-radius: var(--radius);
  padding: 16px;
}

.note-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pagamentos-note p {
  margin: 0;
  color: #0c63e4;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .pagamentos-grid {
    grid-template-columns: 1fr;
  }
}

/* Banner Styles */
.banner-container {
  margin: -24px -24px 24px -24px;
  position: relative;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1a73e8 0%, #4285f4 50%, #34a853 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 32px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: white;
}

.banner-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.banner-container.no-banner .banner-image {
  height: 120px;
}

.banner-container.no-banner .banner-overlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  top: 0;
  background: transparent;
}

@media (max-width: 768px) {
  .banner-container {
    margin: -16px -16px 16px -16px;
  }
  
  .banner-image {
    height: 150px;
  }
  
  .banner-title {
    font-size: 1.4rem;
  }
  
  .banner-subtitle {
    font-size: 0.9rem;
  }
  
  .banner-overlay {
    padding: 16px 20px;
  }
}

/* New Dashboard Styles */
.dashboard-welcome {
  text-align: center;
  padding: 28px 0 20px;
  margin-bottom: 8px;
}

.dashboard-welcome h1 {
  font-size: 1.75rem;
  color: var(--gray-900);
  margin-bottom: 4px;
  font-weight: 600;
}

.dashboard-welcome p {
  color: var(--gray-500);
  font-size: 0.95rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.dashboard-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dashboard-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1), 0 2px 6px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.dashboard-card.full-width {
  grid-column: 1 / -1;
}

/* Card priority indicators */
.dashboard-card.card-invoices {
  border-top: 3px solid #f59e0b;
}

.dashboard-card.card-invoices.has-overdue {
  border-top-color: #ef4444;
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0%, 100% { border-top-color: #ef4444; }
  50% { border-top-color: #fca5a5; }
}

.dashboard-card.card-ticket {
  border-top: 3px solid #3b82f6;
}

.dashboard-card.card-announcements {
  border-top: 3px solid #8b5cf6;
}

.dashboard-card.card-promotions {
  border-top: 3px solid #10b981;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-100);
  background: linear-gradient(to bottom, #fafbfc 0%, #f8f9fa 100%);
}

.card-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.card-icon {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 6px;
  transition: all 0.2s;
}

.card-link:hover {
  background: rgba(59, 130, 246, 0.15);
  text-decoration: none;
}

.card-body {
  padding: 16px 18px;
  min-height: 110px;
}

.loading-small {
  color: var(--gray-500);
  font-size: 0.9rem;
  text-align: center;
  padding: 24px;
}

/* Invoice item in dashboard */
.dashboard-invoice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  margin: 0 -12px;
  border-radius: 8px;
  transition: background 0.15s;
  border-bottom: 1px solid var(--gray-100);
}

.dashboard-invoice-item:last-child {
  border-bottom: none;
}

.dashboard-invoice-item:hover {
  background: var(--gray-50);
}

.dashboard-invoice-item.overdue {
  background: linear-gradient(90deg, #fef2f2 0%, transparent 100%);
  border-left: 3px solid #ef4444;
  margin-left: -15px;
  padding-left: 12px;
}

.invoice-item-info {
  flex: 1;
  min-width: 0;
}

.invoice-item-ref {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 0.9rem;
}

.invoice-item-date {
  color: var(--gray-500);
  font-size: 0.8rem;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.invoice-item-date .overdue-alert {
  color: #ef4444;
  font-weight: 600;
  font-size: 0.75rem;
}

.invoice-item-value {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gray-900);
  text-align: right;
}

.invoice-item-status {
  font-size: 0.7rem;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 600;
  margin-left: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.invoice-item-status.pendente {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  box-shadow: 0 1px 2px rgba(180, 83, 9, 0.15);
}

.invoice-item-status.vencido {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.2);
  animation: pulse-status 1.5s infinite;
}

@keyframes pulse-status {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.invoice-item-status.pago {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.15);
}

.invoice-item-status.near-due {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  box-shadow: 0 1px 2px rgba(180, 83, 9, 0.15);
  animation: pulse-status 2s infinite;
}

/* Alert Badges */
.alert-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 6px;
  vertical-align: middle;
}

.alert-badge.danger {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  animation: pulse-badge 1.5s infinite;
}

.alert-badge.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}

/* Header Alert Badges (on card titles) */
.header-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
  margin-left: 8px;
  min-width: 22px;
  text-align: center;
}

.header-alert-badge.danger {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  animation: pulse-badge 1.5s infinite;
}

.header-alert-badge.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.header-alert-badge.info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.header-alert-badge.new {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  font-size: 0.6rem;
  padding: 2px 6px;
}

.header-alert-badge.promo {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-size: 0.6rem;
  padding: 2px 6px;
}

.header-alert-badge.pulse {
  animation: pulse-badge 1.5s infinite;
}

/* New Badge for Announcements */
.new-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.55rem;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  margin-right: 6px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}

/* New Message Badge for Tickets */
.new-message-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.55rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  margin-left: 6px;
  animation: pulse-badge 1.5s infinite;
  letter-spacing: 0.5px;
}

/* Invoice item with overdue state */
.dashboard-invoice-item.overdue {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-left-color: #dc2626;
  position: relative;
}

.dashboard-invoice-item.overdue::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  animation: overdue-glow 2s infinite;
  pointer-events: none;
}

@keyframes overdue-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
  50% { box-shadow: 0 0 8px 2px rgba(220, 38, 38, 0.15); }
}

.dashboard-invoice-item.near-due {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-left-color: #f59e0b;
}

/* Ticket with new message */
.dashboard-ticket-item.has-new {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left-color: #2563eb;
  position: relative;
}

.dashboard-ticket-item.has-new::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* Announcement with new state */
.dashboard-announcement.is-new {
  background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
  border-left: 3px solid #8b5cf6;
  position: relative;
}

.dashboard-announcement.is-new::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  background: #8b5cf6;
  border-radius: 50%;
}

/* New Promo Badge */
.new-promo-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.55rem;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  margin-right: 6px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}

/* Promotion with new state */
.dashboard-announcement.is-new-promo {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-left: 3px solid #10b981;
  position: relative;
}

.dashboard-announcement.is-new-promo::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
}

/* Card with alerts styling */
.dashboard-card.has-alerts {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dashboard-card.has-overdue {
  border-top-color: #dc2626;
}

/* Ticket item in dashboard */
.dashboard-ticket-item {
  padding: 14px 16px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid #3b82f6;
}

.dashboard-ticket-item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.ticket-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ticket-item-id {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
  font-family: 'SF Mono', Consolas, monospace;
}

.ticket-item-status {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ticket-item-status.aberto {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}

.ticket-item-status.em_andamento {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.ticket-item-status.resolvido {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
}

.ticket-item-subject {
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.ticket-item-date {
  color: var(--gray-500);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.no-data-msg {
  text-align: center;
  color: var(--gray-500);
  padding: 28px 16px;
  font-size: 0.9rem;
}

.no-data-msg .empty-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  display: block;
  opacity: 0.6;
}

.no-data-msg p {
  margin: 0;
  line-height: 1.5;
}

/* Announcements in dashboard */
.dashboard-announcement {
  padding: 14px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  color: white;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.dashboard-announcement::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.dashboard-announcement.clickable {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-announcement.clickable:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.dashboard-announcement:last-child {
  margin-bottom: 0;
}

.dashboard-announcement.promocao {
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
}

.dashboard-announcement.manutencao {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.dashboard-announcement.novidade {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.announcement-arrow {
  font-size: 1.3rem;
  opacity: 0.8;
  transition: transform 0.2s;
}

.dashboard-announcement.clickable:hover .announcement-arrow {
  transform: translateX(4px);
}

.announcement-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.announcement-text {
  font-size: 0.85rem;
  opacity: 0.95;
  line-height: 1.4;
}

.announcement-date {
  font-size: 0.7rem;
  opacity: 0.75;
  margin-top: 6px;
  font-weight: 500;
}

/* Announcement Modal */
.announcement-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

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

.announcement-modal {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.3s ease;
}

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

.announcement-modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.announcement-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.modal-close-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255,255,255,0.3);
}

.announcement-modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(80vh - 80px);
}

.announcement-modal-content {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-700);
  white-space: pre-wrap;
}

.announcement-modal-date {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Quick Actions */
.dashboard-quick-actions {
  margin-top: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  border: 1px solid var(--gray-100);
}

.dashboard-quick-actions h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.quick-action-btn:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.quick-action-btn:active {
  transform: translateY(-1px);
}

.qa-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
}

.quick-action-btn:hover .qa-icon {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.qa-label {
  font-size: 0.8rem;
  color: var(--gray-700);
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

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

  .dashboard-welcome h1 {
    font-size: 1.5rem;
  }
}

/* =============================================
   MOBILE RESPONSIVE STYLES
   ============================================= */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 576px) {
  body {
    font-size: 14px;
  }

  #navbar {
    padding: 0 12px;
    height: 56px;
  }

  .nav-brand .logo {
    font-size: 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .nav-user {
    margin-left: auto;
  }

  .nav-user .user-name {
    display: none;
  }

  #main-content {
    padding: 12px;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  /* Login Page Mobile */
  .login-container {
    padding: 16px;
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
  }

  .login-header .logo-large {
    font-size: 2.5rem;
  }

  .login-form {
    padding: 20px;
  }

  /* Dashboard Mobile */
  .dashboard-welcome {
    padding: 16px;
  }

  .dashboard-welcome h1 {
    font-size: 1.3rem;
  }

  .dashboard-welcome p {
    font-size: 0.9rem;
  }

  .dashboard-card {
    padding: 16px;
  }

  .dashboard-card h3 {
    font-size: 1rem;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .quick-action-btn {
    padding: 14px 10px;
  }

  .qa-icon {
    font-size: 1.5rem;
  }

  .qa-label {
    font-size: 0.75rem;
  }

  /* Invoice Cards Mobile */
  .invoice-card {
    padding: 14px;
  }

  .invoice-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .invoice-value {
    font-size: 1.25rem;
  }

  /* Invoice Detail Mobile */
  .invoice-detail-header {
    flex-direction: column;
    gap: 12px;
  }

  .invoice-detail-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .detail-card {
    padding: 14px;
  }

  .payment-tabs {
    flex-direction: column;
  }

  .payment-tab {
    width: 100%;
    justify-content: center;
  }

  .codigo-box {
    flex-direction: column;
    gap: 8px;
  }

  .codigo-box code {
    font-size: 0.7rem;
    word-break: break-all;
  }

  /* Chat Mobile */
  #page-chat {
    margin: -12px;
    border-radius: 0;
    height: calc(100vh - 56px);
  }

  .chat-header {
    padding: 12px;
  }

  .chat-header h2 {
    font-size: 1rem;
  }

  .chat-messages {
    padding: 12px;
  }

  .chat-message {
    max-width: 90%;
  }

  .message-bubble {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .chat-input-area {
    padding: 10px;
    gap: 8px;
  }

  .chat-input-area textarea {
    font-size: 14px;
    padding: 10px;
  }

  .chat-actions button {
    width: 36px;
    height: 36px;
  }

  /* Messages/Tickets Mobile */
  .ticket-item {
    padding: 12px;
  }

  .ticket-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Modal Mobile */
  .announcement-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .announcement-modal {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
  }

  .announcement-modal-header {
    padding: 16px 20px;
  }

  .announcement-modal-header h3 {
    font-size: 1.1rem;
  }

  .announcement-modal-body {
    padding: 20px;
  }

  /* Tables Mobile */
  .trafego-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .trafego-table th,
  .trafego-table td {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

  /* Forms Mobile */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
    width: 100%;
  }

  .btn + .btn {
    margin-top: 8px;
  }

  /* Filters Mobile */
  .filters {
    flex-direction: column;
    width: 100%;
  }

  .filters select,
  .filters input {
    width: 100%;
  }

  /* Cards Grid Mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 14px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  /* Attachments Mobile */
  .attachment-image img {
    max-width: 100%;
  }

  .attachment-audio {
    width: 100%;
  }

  .attachment-audio audio {
    width: 100%;
  }
}

/* Extra small devices (portrait phones, less than 400px) */
@media (max-width: 400px) {
  .quick-actions-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .quick-action-btn {
    padding: 12px 8px;
  }

  .qa-icon {
    font-size: 1.3rem;
    margin-bottom: 4px;
  }

  .qa-label {
    font-size: 0.7rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .invoice-card {
    padding: 12px;
  }

  .codigo-box code {
    font-size: 0.65rem;
  }

  .payment-option-content h4 {
    font-size: 0.9rem;
  }
}

/* Mobile Navigation Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-700);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    display: flex;
  }

  .nav-link {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav-link,
  .quick-action-btn,
  .invoice-card,
  .dashboard-announcement.clickable {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .btn:active,
  .quick-action-btn:active {
    transform: scale(0.98);
  }

  .dashboard-announcement.clickable:active {
    transform: scale(0.98);
  }
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {
  #navbar {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  #main-content {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .chat-input-area {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .login-container {
    padding: 12px;
  }

  .login-header {
    margin-bottom: 16px;
  }

  .login-header .logo-large {
    font-size: 2rem;
  }

  .login-form {
    padding: 16px;
  }

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

/* Alertas Page */
.alertas-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  border: none;
  background: var(--white);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}

.filter-btn:hover {
  background: var(--gray-50);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--white);
}

.alertas-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.alerta-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gray-300);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.alerta-card.tipo-aviso {
  border-left-color: var(--warning);
}

.alerta-card.tipo-promocao {
  border-left-color: var(--success);
}

.alerta-card.tipo-manutencao {
  border-left-color: var(--danger);
}

.alerta-card.tipo-novidade {
  border-left-color: var(--primary);
}

.alerta-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.alerta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.alerta-badge.badge-aviso {
  background: rgba(251, 188, 4, 0.15);
  color: #f57c00;
}

.alerta-badge.badge-promocao {
  background: rgba(52, 168, 83, 0.15);
  color: var(--success);
}

.alerta-badge.badge-manutencao {
  background: rgba(234, 67, 53, 0.15);
  color: var(--danger);
}

.alerta-badge.badge-novidade {
  background: rgba(26, 115, 232, 0.15);
  color: var(--primary);
}

.alerta-badge.badge-geral {
  background: var(--gray-100);
  color: var(--gray-700);
}

.alerta-date {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.alerta-image {
  margin: 12px 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.alerta-image img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  display: block;
  background: var(--gray-50);
}

.alerta-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.alerta-content {
  color: var(--gray-700);
  line-height: 1.6;
}

.alerta-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alerta-destaque {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--warning);
}

.alerta-validity {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.alertas-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.alertas-empty .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.alertas-empty h3 {
  color: var(--gray-700);
  margin-bottom: 8px;
}

.alertas-empty p {
  color: var(--gray-500);
}

@media (max-width: 768px) {
  .alertas-filters {
    gap: 6px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .alerta-card {
    padding: 16px;
  }

  .alerta-header {
    flex-direction: column;
    gap: 8px;
  }

  .alerta-footer {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* Dashboard Settings Button */
.dashboard-welcome {
  position: relative;
}

.dashboard-settings-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-500);
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dashboard-settings-btn:hover {
  background: var(--gray-50);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) rotate(45deg);
}

/* Dashboard Settings Modal */
.dashboard-settings-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.dashboard-settings-modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s ease;
}

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

.settings-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
}

.settings-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.settings-modal-body {
  padding: 20px 24px;
}

.settings-hint {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.settings-sections-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.settings-section-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--gray-50);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: all 0.2s;
  cursor: grab;
}

.settings-section-item:hover {
  background: var(--gray-100);
}

.settings-section-item.dragging {
  opacity: 0.5;
  background: var(--primary-light);
}

.section-drag-handle {
  color: var(--gray-400);
  cursor: grab;
  display: flex;
  align-items: center;
}

.section-drag-handle:active {
  cursor: grabbing;
}

.section-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  cursor: pointer;
}

.section-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.section-label {
  font-weight: 500;
  color: var(--gray-800);
}

.section-order-btns {
  display: flex;
  gap: 4px;
}

.order-btn {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-500);
  transition: all 0.15s;
}

.order-btn:hover:not(:disabled) {
  background: var(--gray-100);
  color: var(--gray-700);
  border-color: var(--gray-300);
}

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

.settings-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
  border-radius: 0 0 16px 16px;
}

.settings-modal-footer .btn {
  min-width: 100px;
}

/* Dashboard grid with flex order support */
.dashboard-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.dashboard-grid .dashboard-card {
  flex: 1 1 calc(50% - 10px);
  min-width: 280px;
}

@media (max-width: 768px) {
  .dashboard-settings-btn {
    width: 32px;
    height: 32px;
    right: -8px;
  }

  .dashboard-grid .dashboard-card {
    flex: 1 1 100%;
  }

  .settings-section-item {
    padding: 10px 12px;
  }
  
  .section-order-btns {
    display: none;
  }
}

/* Toast Notification System */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.toast-notification {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.3s ease;
  border-left: 4px solid var(--gray-400);
}

.toast-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-notification.success {
  border-left-color: #10b981;
}

.toast-notification.success .toast-icon {
  color: #10b981;
}

.toast-notification.error {
  border-left-color: #ef4444;
}

.toast-notification.error .toast-icon {
  color: #ef4444;
}

.toast-notification.warning {
  border-left-color: #f59e0b;
}

.toast-notification.warning .toast-icon {
  color: #f59e0b;
}

.toast-notification.info {
  border-left-color: #3b82f6;
}

.toast-notification.info .toast-icon {
  color: #3b82f6;
}

.toast-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.toast-content {
  flex: 1;
}

.toast-message {
  font-size: 0.9rem;
  color: var(--gray-800);
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}

.toast-close:hover {
  color: var(--gray-600);
}

/* Loading Overlay */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

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

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

.loading-message {
  font-size: 1rem;
  color: var(--gray-700);
  font-weight: 500;
}

/* Button spinner */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

/* Confirm Modal */
.confirm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.confirm-modal {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.confirm-icon {
  color: #f59e0b;
  margin-bottom: 16px;
}

.confirm-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.confirm-message {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 24px;
}

.confirm-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-buttons .btn {
  min-width: 110px;
}

/* Result Modal */
.result-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.result-modal {
  background: white;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: scaleIn 0.3s ease;
}

.result-icon {
  margin-bottom: 20px;
}

.result-icon.success {
  color: #10b981;
}

.result-icon.error {
  color: #ef4444;
}

.result-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.result-message {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 28px;
}

.result-ok {
  min-width: 120px;
}

/* Result Header in page */
.result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.result-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.result-header.success {
  color: #10b981;
}

.result-header.error {
  color: #ef4444;
}

.result-details {
  color: var(--gray-700);
  line-height: 1.6;
}

.result-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0;
  padding: 12px;
  background: var(--gray-50);
  border-radius: 8px;
}

.result-note {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}

/* Desbloqueio result styling */
#desbloqueio-result {
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
}

#desbloqueio-result.success {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #10b981;
}

#desbloqueio-result.error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #ef4444;
}

#desbloqueio-result.pending {
  background: linear-gradient(135deg, #fefce8 0%, #fef08a 100%);
  border: 1px solid #f59e0b;
}

.result-header.pending {
  color: #d97706;
}

@media (max-width: 768px) {
  #toast-container {
    top: auto;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: none;
  }

  .confirm-modal,
  .result-modal {
    padding: 24px 20px;
  }

  .confirm-buttons {
    flex-direction: column-reverse;
  }

  .confirm-buttons .btn {
    width: 100%;
  }
}

/* Section Tabs - Financeiro Page */
.section-tabs {
  display: flex;
  gap: 4px;
  background: var(--white);
  padding: 8px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.section-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
}

.section-tab svg {
  width: 18px;
  height: 18px;
}

.section-tab:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.section-tab.active {
  background: var(--primary);
  color: white;
}

.section-content {
  display: none;
}

.section-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Filters Bar */
.filters-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.filter-select {
  padding: 10px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: white;
  font-size: 0.9rem;
  color: var(--gray-700);
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Feature Header */
.feature-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-header h2 {
  font-size: 1.3rem;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.feature-header p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* Info Mini Cards */
.info-cards-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.info-mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: 8px;
  flex: 1;
}

.info-mini-card svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.info-mini-card span {
  font-size: 0.9rem;
  color: var(--gray-700);
}

/* Form Row */
.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row .form-group {
  flex: 1;
}

/* Desbloqueio Card Redesign */
#desbloqueio-section .desbloqueio-card,
#pagamentos-section .pagamentos-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
  max-width: 600px;
}

/* Payment Options Grid */
.payment-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.payment-option-card {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  position: relative;
}

.payment-option-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.payment-option-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.payment-option-icon svg {
  width: 24px;
  height: 24px;
}

.payment-option-icon.pix {
  background: linear-gradient(135deg, #00bdae 0%, #00a693 100%);
  color: white;
}

.payment-option-icon.boleto {
  background: linear-gradient(135deg, #5c6bc0 0%, #3f51b5 100%);
  color: white;
}

.payment-option-icon.cartao {
  background: linear-gradient(135deg, #ff7043 0%, #f4511e 100%);
  color: white;
}

.payment-option-card h3 {
  font-size: 1rem;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.payment-option-card p {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.payment-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.payment-badge.recommended {
  background: var(--success);
  color: white;
}

.payment-instructions {
  text-align: center;
  padding: 16px;
  background: var(--gray-50);
  border-radius: 8px;
}

.payment-instructions p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* Mobile Responsive for Section Tabs */
@media (max-width: 768px) {
  .section-tabs {
    flex-wrap: wrap;
  }
  
  .section-tab {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
  
  .section-tab svg {
    width: 16px;
    height: 16px;
  }
  
  .info-cards-row {
    flex-direction: column;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .payment-options-grid {
    grid-template-columns: 1fr;
  }
  
  #desbloqueio-section .desbloqueio-card,
  #pagamentos-section .pagamentos-card {
    padding: 20px;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    margin-left: 0;
  }
  
  .nav-link {
    padding: 12px 16px;
    justify-content: flex-start;
  }
  
  .nav-text {
    font-size: 1rem;
  }
}

/* ===== PERFIL PAGE STYLES ===== */
.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  position: relative;
}

.user-avatar-small {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  overflow: hidden;
}

.user-avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-dropdown {
  position: relative;
}

.user-dropdown #user-name {
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.user-dropdown #user-name:hover {
  background: var(--gray-100);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  z-index: 1000;
}

.user-dropdown:hover .dropdown-menu,
.nav-user:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  border: none;
  background: none;
  color: var(--gray-700);
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

/* Perfil Container */
.perfil-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.perfil-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.perfil-card h3 {
  font-size: 1.1rem;
  color: var(--gray-900);
  margin-bottom: 16px;
}

/* Foto de Perfil */
.perfil-foto-card {
  grid-column: 1;
  grid-row: 1;
}

.perfil-avatar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.perfil-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 42px;
  overflow: hidden;
  position: relative;
}

.perfil-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.perfil-avatar-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.btn-small {
  padding: 8px 16px !important;
  font-size: 13px !important;
}

/* Dados do Perfil */
.perfil-dados-card {
  grid-column: 2;
  grid-row: 1 / 3;
}

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

.perfil-card-header h3 {
  margin-bottom: 0;
}

.perfil-info-badge {
  font-size: 12px;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: 20px;
}

.perfil-dados-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.perfil-dado {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.perfil-dado label {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.perfil-dado span {
  font-size: 15px;
  color: var(--gray-900);
}

.perfil-dado-full {
  grid-column: 1 / -1;
}

.perfil-dados-alert {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #fff8e1;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border-left: 4px solid var(--warning);
}

.perfil-dados-alert svg {
  color: var(--warning);
  flex-shrink: 0;
  margin-top: 2px;
}

.perfil-dados-alert strong {
  display: block;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.perfil-dados-alert p {
  font-size: 13px;
  color: var(--gray-700);
  margin: 0;
}

#btn-solicitar-atualizacao {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Contratos */
.perfil-contratos-card {
  grid-column: 1;
  grid-row: 2;
}

.perfil-contratos-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.perfil-contrato-item {
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}

.perfil-contrato-item h4 {
  font-size: 14px;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.perfil-contrato-item p {
  font-size: 13px;
  color: var(--gray-700);
  margin: 0;
}

.perfil-contrato-status {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 8px;
}

.perfil-contrato-status.ativo {
  background: #e8f5e9;
  color: var(--success);
}

.perfil-contrato-status.inativo {
  background: #ffebee;
  color: var(--danger);
}

/* Modal Solicitar Atualizacao */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 {
  font-size: 1.25rem;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: var(--gray-900);
}

.modal-body {
  padding: 24px;
}

.modal-body p {
  margin-bottom: 16px;
  color: var(--gray-700);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-700);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Mobile Responsive for Perfil */
@media (max-width: 900px) {
  .perfil-container {
    grid-template-columns: 1fr;
  }
  
  .perfil-foto-card,
  .perfil-dados-card,
  .perfil-contratos-card {
    grid-column: 1;
    grid-row: auto;
  }
  
  .perfil-dados-grid {
    grid-template-columns: 1fr;
  }
  
  .checkbox-group {
    grid-template-columns: 1fr;
  }
}
