:root {
  --primary-color: #C86432;
  --primary-dark: #A04A20;
  --bg-color: #F9F9F7;
  --text-dark: #2C1810;
  --text-muted: #6B5B54;
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.font-serif,
.brand-logo,
.brand-title {
  font-family: 'Playfair Display', serif;
}

a {
  color: var(--primary-color);
}
a:hover {
  color: var(--primary-dark);
}

.btn-primary,
.btn-primary-custom {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn-primary-custom:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

.btn-outline-custom {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}
.btn-outline-custom:hover {
  background-color: var(--primary-color) !important;
  color: #fff !important;
}

.content-card,
.kpi-card,
.chart-container,
.card-custom,
.plan-card,
.feature-card,
.login-card,
.pix-card,
.card-glass {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--glass-shadow);
}

.content-card {
  background: #fff;
}

.card-soft {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.empty-state {
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  color: var(--text-muted);
  background: #fffdf8;
}

.empty-state .icon {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 0.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200, 100, 50, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(200, 100, 50, 0.2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

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

.accent-bar {
  height: 4px;
  width: 64px;
  background: var(--primary-color);
  border-radius: 999px;
}

.swal2-popup {
  border-radius: 16px !important;
  font-family: 'Inter', sans-serif !important;
}
.swal2-title {
  font-family: 'Playfair Display', serif !important;
}
.swal2-confirm {
  background-color: var(--primary-color) !important;
}
.swal2-confirm:hover {
  background-color: var(--primary-dark) !important;
}
.swal2-toast {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
}

.modal-content {
  border-radius: 16px !important;
  border: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}
.modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.modal-title {
  font-family: 'Playfair Display', serif;
}

.hero-section {
  padding: clamp(4rem, 8vw, 8rem) 0;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.table-custom th {
  font-weight: 700;
}

.navbar-custom {
  backdrop-filter: blur(10px);
}

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
}

@media (max-width: 991px) {
  .sidebar {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    border-right: none !important;
    border-bottom: 1px solid #eee;
  }
  .main-content {
    margin-left: 0 !important;
    padding: 1.25rem !important;
  }
  .nav-link {
    border-right: none !important;
  }
  .hero-search-container {
    flex-direction: column;
    gap: 8px;
    border-radius: var(--radius-md);
    padding: 12px;
  }
  .hero-search-btn {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .hero-section {
    padding: 4rem 0;
  }
  .plan-card.popular {
    transform: none;
  }
  .navbar-custom .navbar-collapse {
    margin-top: 12px;
  }
  .main-container,
  .login-card,
  .pix-card {
    padding: 1.5rem !important;
  }
  .table-custom th,
  .table-custom td {
    white-space: nowrap;
  }
}
