:root {
  --primary: #2e4ead;
  --primary-dark: #1a2e7d;
  --primary-light: #4369f7;
  --secondary: #6c63ff;
  --accent: #00c9a7;
  --dark: #172241;
  --light: #f8faff;
  --gray-100: #f3f6ff;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --success: #10ca93;
  --warning: #ffbe0b;
  --danger: #ff5b64;
  --info: #2cc7ff;
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
  --transition: all 0.3s ease;
}

/* ================================================
   BASE & RESET
   ================================================ */
* {
  box-sizing: border-box;
}

body, html {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  background-color: var(--light);
  color: var(--gray-800);
  line-height: 1.6;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

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

/* ================================================
   UTILITIES
   ================================================ */
.text-gradient {
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-accent {
  color: #00e676;
  display: block;
}

.bg-gradient {
  background: var(--gradient-primary);
}

.bg-gradient-alt {
  background: var(--gradient-accent);
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.shadow-modern {
  box-shadow: var(--shadow) !important;
}

.shadow-modern-lg {
  box-shadow: var(--shadow-lg) !important;
}

/* ================================================
   PRELOADER & BACK TO TOP
   ================================================ */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader {
  width: 50px;
  height: 50px;
}

.back-to-top {
  position: fixed;
  bottom: -60px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  z-index: 99;
  opacity: 0;
}

.back-to-top.active {
  bottom: 20px;
  opacity: 1;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  padding: 0.7rem 1.8rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: white;
}

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

.btn-secondary:hover {
  background: #5853dd;
  border-color: #5853dd;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: white;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline-light {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-2px);
  border-color: white;
}

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

.btn-success:hover {
  background: #0fb887;
  border-color: #0fb887;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: white;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: var(--border-radius-lg);
}

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

/* ================================================
   CARDS
   ================================================ */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  height: 100%;
  background: white;
}

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

.card-header {
  background-color: transparent;
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem 1.8rem;
  font-weight: 600;
}

.card-body {
  padding: 1.8rem;
}

.card-footer {
  background-color: transparent;
  border-top: 1px solid var(--gray-200);
  padding: 1.2rem 1.8rem;
}

/* ================================================
   NAVBAR - HOME PAGE
   ================================================ */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  backdrop-filter: blur(10px);
  background: var(--primary);
  box-shadow: var(--shadow);
}

.navbar-placeholder {
  height: 80px;
}

.navbar-brand img {
  height: 40px;
  transition: var(--transition);
}

.navbar-expand-lg .navbar-nav .nav-link {
  padding: 0.8rem 1.2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition);
  border-radius: var(--border-radius);
  margin: 0 0.2rem;
}

.navbar-expand-lg .navbar-nav .nav-link:hover,
.navbar-expand-lg .navbar-nav .nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Navbar específico da home (transparente inicialmente) */
.navbar-dark {
  background: var(--dark);
  box-shadow: none;
  transition: all 0.3s ease;
}

/* Quando rola a página na home */
.navbar-dark.navbar-scrolled {
  background: var(--primary) !important;
  box-shadow: var(--shadow) !important;
  padding: 0.7rem 0 !important;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ================================================
   DASHBOARD NAVBAR
   ================================================ */
.dashboard-navbar {
  background: white !important;
  border-bottom: 1px solid #dee2e6;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  height: 70px;
  z-index: 1040;
}

.dashboard-navbar .navbar-brand {
  font-weight: 600;
  color: var(--dark);
}

.dashboard-navbar .navbar-text {
  color: var(--gray-600);
}

.dashboard-navbar .user-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.dashboard-navbar .btn-link {
  color: var(--dark);
  text-decoration: none;
  border: none;
  background: none;
}

.dashboard-navbar .btn-link:hover,
.dashboard-navbar .btn-link:focus {
  color: var(--primary);
  text-decoration: none;
}

.dashboard-navbar .dropdown-toggle::after {
  margin-left: 0.5rem;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
  display: none;
  border: none !important;
  background: none !important;
  color: var(--dark) !important;
  font-size: 1.5rem !important;
  padding: 0.5rem !important;
  position: relative;
}

.sidebar-toggle:focus {
  outline: none !important;
  box-shadow: none !important;
}

.sidebar-toggle i {
  transition: transform 0.2s ease;
}

.sidebar-toggle:hover i {
  transform: scale(1.1);
}

/* ================================================
   DASHBOARD SIDEBAR
   ================================================ */
.dashboard-container {
  display: flex;
  min-height: 100vh;
  padding-top: 70px;
}

.sidebar {
  width: 280px;
  background: var(--dark);
  position: fixed;
  left: 0;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  z-index: 1050;
  transition: var(--transition);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
  padding: 2rem 1.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo img {
  max-width: 150px;
  height: auto;
}

.sidebar-nav {
  padding: 1.5rem 0;
}

.sidebar-nav .nav {
  padding: 0 1.5rem;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 0.5rem;
}

.sidebar-nav .nav-link i {
  font-size: 1.2rem;
  margin-right: 1rem;
  width: 24px;
  text-align: center;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateX(5px);
}

.sidebar-user {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.user-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  margin-right: 1rem;
}

.user-details h6 {
  margin-bottom: 0.3rem;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

.user-details p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.user-balance {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: var(--border-radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  margin-bottom: 1rem;
}

.balance-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.balance-value {
  font-weight: bold;
  font-size: 1.1rem;
  color: #00e676;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block !important;
  opacity: 1 !important;
}

/* ================================================
   MAIN CONTENT
   ================================================ */
.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 2rem;
  background: var(--light);
  min-height: calc(100vh - 70px);
  transition: var(--transition);
}

.page-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--gray-200);
}

.page-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  color: var(--dark);
}

.page-description {
  color: var(--gray-600);
  margin-bottom: 0;
  font-size: 1.05rem;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
  position: relative;
  padding: 140px 0 100px;
  background: var(--gradient-primary);
  color: white;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  width: 100%;
}

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  right: 20%;
  animation-delay: 2s;
}

.shape-3 {
  width: 400px;
  height: 400px;
  top: 20%;
  left: -200px;
  opacity: 0.03;
  animation-delay: 4s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 10%;
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: white;
}

.hero p {
  font-size: 1.3rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visuals {
  position: relative;
}

.hero-dashboard {
  position: relative;
  margin-top: 40px;
  z-index: 2;
}

.hero-dashboard img {
  border-radius: var(--border-radius-xl);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  transform: perspective(1200px) rotateY(-8deg) rotateX(5deg);
  transition: var(--transition);
  width: 100%;
  height: auto;
}

.hero-dashboard:hover img {
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}

.floating-badge {
  position: absolute;
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  z-index: 3;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  max-width: 280px;
  animation: floatBadge 4s ease-in-out infinite;
}

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

.floating-badge:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.floating-badge-1 {
  top: 10%;
  left: -30px;
  animation-delay: 0s;
}

.floating-badge-2 {
  bottom: 15%;
  right: -30px;
  animation-delay: 2s;
}

.floating-badge-icon {
  width: 55px;
  height: 55px;
  min-width: 55px;
  border-radius: var(--border-radius);
  background: rgba(46, 78, 173, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-right: 1rem;
}

.floating-badge-content h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--dark);
}

.floating-badge-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--gray-600);
}

/* ================================================
   STATS SECTION
   ================================================ */
.stats {
  padding: 4rem 0;
  background: var(--gray-100);
}

.stats .row > div {
  border-right: 1px solid var(--gray-300);
}

.stats .row > div:last-child {
  border-right: none;
}

.stats h2 {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stats p {
  color: var(--gray-600);
  font-weight: 500;
  margin-bottom: 0;
}

/* ================================================
   FEATURE & SERVICE CARDS
   ================================================ */
.feature-card {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--border-radius-xl);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  border: 2px solid transparent;
}

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

.feature-card .feature-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.2rem;
  color: var(--primary);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.feature-card h3 {
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
  font-weight: 700;
}

.feature-card p {
  color: var(--gray-600);
  margin-bottom: 0;
  line-height: 1.7;
}

.service-card {
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  padding: 2rem 1.5rem;
  border-radius: var(--border-radius-lg);
  background: white;
  text-align: center;
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

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

.service-card .service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.15);
}

.service-card img.service-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.service-card .service-icon-placeholder {
  width: 50px;
  height: 50px;
  background-color: var(--gray-200);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gray-500);
  margin: 0 auto 1rem;
}

.service-card h5 {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0;
}

.service-card .badge {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

/* Service Icons Colors */
.service-card .bi-whatsapp { color: #25D366; }
.service-card .bi-telegram { color: #0088cc; }
.service-card .bi-google { color: #DB4437; }
.service-card .bi-facebook { color: #4267B2; }
.service-card .bi-instagram { color: #E1306C; }
.service-card .bi-twitter { color: #1DA1F2; }
.service-card .bi-discord { color: #5865F2; }
.service-card .bi-tiktok { color: #000000; }
.service-card .bi-paypal { color: #003087; }
.service-card .bi-microsoft { color: #00A4EF; }
.service-card .bi-apple { color: #A2AAAD; }
.service-card .bi-amazon { color: #FF9900; }

/* Country cards in modal */
.country-card {
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

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

/* ================================================
   HOW IT WORKS
   ================================================ */
.how-it-works {
  padding: 6rem 0;
  background: white;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step .step-number {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: white;
  font-size: 2rem;
  font-weight: 800;
  position: relative;
  z-index: 2;
}

.process-step .step-line {
  position: absolute;
  top: 45px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0.3;
  z-index: 1;
}

.process-step:last-child .step-line {
  display: none;
}

.process-step h4 {
  margin-bottom: 1rem;
  font-weight: 700;
}

.process-step p {
  color: var(--gray-600);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ================================================
   TESTIMONIALS
   ================================================ */
.testimonials {
  padding: 6rem 0;
  background: var(--gray-100);
}

.testimonial-card {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.testimonial-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1.2rem;
  border: 3px solid var(--primary);
}

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

.testimonial-author h5 {
  margin-bottom: 0.3rem;
  font-weight: 700;
  color: var(--dark);
}

.testimonial-author p {
  margin-bottom: 0;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.testimonial-body p {
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

.testimonial-stars {
  color: var(--warning);
  font-size: 1.1rem;
}

/* ================================================
   CTA SECTION
   ================================================ */
.cta {
  padding: 6rem 0;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: movePattern 20s linear infinite;
}

@keyframes movePattern {
  0% { transform: translateX(0); }
  100% { transform: translateX(100px); }
}

.cta h2 {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.cta p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  opacity: 0.95;
  position: relative;
  z-index: 2;
}

/* ================================================
   SECTION HEADINGS
   ================================================ */
.section-heading {
  text-align: center;
  margin-bottom: 4rem;
}

.section-heading h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.section-heading p {
  font-size: 1.2rem;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--dark);
  color: var(--gray-400);
  padding: 5rem 0 2rem;
}

.footer h5 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.footer-about img {
  max-width: 200px;
  margin-bottom: 2rem;
}

.footer-about p {
  margin-bottom: 2rem;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-social {
  margin-top: 2rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  margin-right: 1rem;
  transition: var(--transition);
  font-size: 1.2rem;
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

.dashboard-footer {
  background: white;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-600);
  font-size: 0.9rem;
  padding: 1.5rem 0;
}

.dashboard-footer a {
  color: var(--primary);
  text-decoration: none;
}

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

/* ================================================
   MODALS & FORMS
   ================================================ */
.modal-content {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem 2rem;
}

.modal-header h5 {
  font-weight: 700;
  margin-bottom: 0;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  padding: 1.5rem 2rem;
}

.form-control {
  border-radius: var(--border-radius);
  border: 2px solid var(--gray-300);
  padding: 0.8rem 1rem;
  transition: var(--transition);
  font-size: 0.95rem;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(46, 78, 173, 0.15);
}

.form-label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.8rem;
}

/* ================================================
   ALERTS & NOTIFICATIONS
   ================================================ */
.alert {
  border: none;
  border-radius: var(--border-radius);
  border-left: 4px solid;
  padding: 1.2rem 1.5rem;
  font-weight: 500;
}

.alert-success {
  border-left-color: var(--success);
  background-color: rgba(16, 202, 147, 0.1);
  color: #0d7749;
}

.alert-danger {
  border-left-color: var(--danger);
  background-color: rgba(255, 91, 100, 0.1);
  color: #a02834;
}

.alert-warning {
  border-left-color: var(--warning);
  background-color: rgba(255, 190, 11, 0.1);
  color: #8a6d0a;
}

.alert-info {
  border-left-color: var(--info);
  background-color: rgba(44, 199, 255, 0.1);
  color: #1a7ba8;
}

.toast-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 1070;
}

.toast {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.toast-header {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

/* ================================================
   TABLES & BADGES
   ================================================ */
.table {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: white;
}

.table th {
  background: var(--gray-100);
  border: none;
  font-weight: 700;
  color: var(--dark);
  padding: 1rem 1.2rem;
}

.table td {
  border: none;
  padding: 1rem 1.2rem;
  vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: rgba(0, 0, 0, 0.02);
}

.badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

/* Admin tables responsive */
@media (max-width: 768px) {
  .table th, .table td {
    padding: 0.6rem 0.5rem;
    font-size: 0.85rem;
  }
  .table .btn-sm {
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
  }
}

.badge.bg-success {
  background: var(--success) !important;
}

.badge.bg-warning {
  background: var(--warning) !important;
  color: var(--dark) !important;
}

.badge.bg-danger {
  background: var(--danger) !important;
}

.badge.bg-primary {
  background: var(--primary) !important;
}

/* ================================================
   PROGRESS & DROPDOWN
   ================================================ */
.progress {
  height: 10px;
  border-radius: 20px;
  background: var(--gray-200);
  overflow: hidden;
}

.progress-bar {
  border-radius: 20px;
  transition: width 0.3s ease;
}

.dropdown-menu {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  min-width: 200px;
}

.dropdown-header {
  padding: 0.75rem 1rem;
  background-color: var(--gray-100);
}

.dropdown-item {
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

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

.dropdown-item i {
  width: 16px;
  text-align: center;
}

.dropdown-menu.show {
  display: block !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ================================================
   ANIMATIONS
   ================================================ */
.service-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }
.service-item:nth-child(5) { animation-delay: 0.5s; }
.service-item:nth-child(6) { animation-delay: 0.6s; }

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

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

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

/* ================================================
   SCROLLBAR
   ================================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .floating-badge-1 {
    left: -10px;
  }
  
  .floating-badge-2 {
    right: -10px;
  }
}

@media (max-width: 992px) {
  /* DASHBOARD MOBILE */
  .sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    height: calc(100vh - 70px);
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1050;
    background: var(--dark);
    overflow-y: auto;
  }
  
  .sidebar.active {
    transform: translateX(0) !important;
  }
  
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .sidebar-overlay.active {
    display: block !important;
    opacity: 1 !important;
  }
  
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding-top: 1rem;
  }
  
  .sidebar-toggle {
    display: inline-block !important;
  }
  
  /* HOME PAGE MOBILE */
  .hero {
    padding: 120px 0 80px;
    text-align: center;
    min-height: auto;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .floating-badge {
    display: none;
  }
  
  .process-step .step-line {
    display: none;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-heading h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .cta h2 {
    font-size: 2.2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-heading h2 {
    font-size: 2rem;
  }
  
  .stats .row > div {
    border-right: none;
    border-bottom: 1px solid var(--gray-300);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }
  
  .stats .row > div:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }
  
  .testimonial-header {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-avatar {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-lg {
    width: 100%;
    max-width: 280px;
  }
  
  .cta h2 {
    font-size: 1.8rem;
  }
  
  .main-content {
    padding: 5rem 1rem 2rem;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .stats h2 {
    font-size: 2.5rem;
  }
}

/* ================================================
   TOUCH DEVICES
   ================================================ */
@media (hover: none) and (pointer: coarse) {
  .sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .sidebar-overlay {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
}

/* ================================================
   LOADING STATES
   ================================================ */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* ================================================
   PRINT STYLES
   ================================================ */
@media print {
  .navbar,
  .sidebar,
  .footer,
  .btn,
  .floating-badge {
    display: none !important;
  }
  
  .main-content {
    margin-left: 0 !important;
  }
}

/* ================================================
   Z-INDEX HIERARCHY
   ================================================ */
.navbar {
  z-index: 1030;
}

.sidebar {
  z-index: 1050;
}

.sidebar-overlay {
  z-index: 1040;
}

.modal {
  z-index: 1060;
}

.modal-backdrop {
  z-index: 1055;
}

.toast-container {
  z-index: 1070;
}

.back-to-top {
  z-index: 99;
}

/* ================================================
   DASHBOARD NAVBAR - CORREÇÕES PARA DROPDOWN
   ================================================ */
.dashboard-navbar {
  background: white !important;
  border-bottom: 1px solid #dee2e6;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  height: 70px;
  z-index: 1040;
}

.dashboard-navbar .navbar-brand {
  font-weight: 600;
  color: var(--dark);
}

.dashboard-navbar .navbar-text {
  color: var(--gray-600);
}

.dashboard-navbar .user-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.dashboard-navbar .btn-link {
  color: var(--dark);
  text-decoration: none;
  border: none;
  background: none;
}

.dashboard-navbar .btn-link:hover,
.dashboard-navbar .btn-link:focus {
  color: var(--primary);
  text-decoration: none;
}

/* CORREÇÃO CRÍTICA PARA O DROPDOWN */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  z-index: 1070 !important;
  display: none;
  float: none;
  min-width: 250px;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 0.95rem;
  color: #212529;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 12px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.dropdown-menu-end {
  --bs-position: end;
  right: 0 !important;
  left: auto !important;
}

.dropdown-menu.show {
  display: block !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: dropdownFadeIn 0.15s ease-out;
}

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

.dropdown-toggle::after {
  margin-left: 0.5rem;
  vertical-align: middle;
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

.dropdown-header {
  display: block;
  padding: 0.75rem 1rem;
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--gray-600);
  white-space: nowrap;
  background-color: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  clear: both;
  font-weight: 400;
  color: #212529;
  text-align: inherit;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: #1e2125;
  background-color: var(--gray-100);
}

.dropdown-item.active,
.dropdown-item:active {
  color: #fff;
  text-decoration: none;
  background-color: var(--primary);
}

.dropdown-item.disabled,
.dropdown-item:disabled {
  color: var(--gray-400);
  pointer-events: none;
  background-color: transparent;
}

.dropdown-item-text {
  display: block;
  padding: 0.75rem 1rem;
  color: #212529;
}

.dropdown-divider {
  height: 0;
  margin: 0.5rem 0;
  overflow: hidden;
  border-top: 1px solid var(--gray-200);
}

/* Sidebar Toggle Button */
.sidebar-toggle {
  display: none;
  border: none !important;
  background: none !important;
  color: var(--dark) !important;
  font-size: 1.5rem !important;
  padding: 0.5rem !important;
  position: relative;
}

.sidebar-toggle:focus {
  outline: none !important;
  box-shadow: none !important;
}

.sidebar-toggle i {
  transition: transform 0.2s ease;
}

.sidebar-toggle:hover i {
  transform: scale(1.1);
}

/* ================================================
   RESPONSIVO - MOBILE
   ================================================ */
@media (max-width: 992px) {
  .sidebar-toggle {
    display: inline-block !important;
  }
  
  .dropdown-menu {
    min-width: 220px !important;
  }
}

@media (max-width: 576px) {
  .dropdown-menu {
    min-width: 200px !important;
    right: 10px !important;
  }
}

/* ================================================
   SIDEBAR SOBREPONDO O NAVBAR
   ================================================ */

/* Ajustar o dashboard container */
.dashboard-container {
  display: flex;
  min-height: 100vh;
  padding-top: 70px;
}

/* Sidebar modificado para começar do topo e sobrepor o navbar */
.sidebar {
  width: 280px;
  background: var(--dark);
  position: fixed;
  left: 0;
  top: 0; /* Mudança: agora começa do topo em vez de 70px */
  height: 100vh; /* Mudança: altura total da viewport */
  overflow-y: auto;
  z-index: 1060; /* Mudança: z-index maior que o navbar (1040) */
  transition: var(--transition);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Logo do sidebar - agora vai ocupar o espaço do navbar também */
.sidebar-logo {
  padding: 1.5rem 1.5rem 1rem; /* Mudança: padding reduzido no topo */
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  /* Mudança: altura similar ao navbar para alinhar */
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-logo img {
  max-width: 150px;
  height: auto;
  max-height: 40px; /* Mudança: altura máxima para caber no espaço */
}

/* Ajustar a navegação do sidebar */
.sidebar-nav {
  padding: 1rem 0; /* Mudança: padding reduzido */
}

/* Main content - manter o mesmo margin-left */
.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 2rem;
  background: var(--light);
  min-height: calc(100vh - 70px);
  transition: var(--transition);
}



/* ================================================
   RESPONSIVE - MOBILE
   ================================================ */
@media (max-width: 992px) {
  /* No mobile, manter comportamento normal */
  .sidebar {
    position: fixed;
    top: 70px; /* Volta para baixo do navbar no mobile */
    left: 0;
    height: calc(100vh - 70px);
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1050; /* z-index menor no mobile */
    background: var(--dark);
    overflow-y: auto;
  }
  
  .sidebar.active {
    transform: translateX(0) !important;
  }
  
  .sidebar-logo {
    min-height: auto;
    padding: 2rem 1.5rem 1rem;
  }
  
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding-top: 1rem;
  }
  
  /* Mostrar o título do navbar no mobile */
  .navbar-brand.d-none.d-lg-block {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  
  .navbar .navbar-brand {
    visibility: visible !important;
  }
}

/* ================================================
   AJUSTES OPCIONAIS PARA MELHOR VISUAL
   ================================================ */

/* Se quiser que o sidebar tenha uma sombra sobre o navbar */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  right: -10px;
  width: 10px;
  height: 70px; /* Altura do navbar */
  background: linear-gradient(to right, rgba(0,0,0,0.1), transparent);
  z-index: 1;
}

/* Ajustar o user info no bottom para compensar a altura extra */
.sidebar-user {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ================================================
   VARIAÇÃO ALTERNATIVA - COM EFEITO GLASSMORPHISM
   ================================================ */

/* Se quiser um efeito mais moderno, descomente isso: */
/*
.sidebar {
  background: rgba(46, 78, 173, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-logo {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}
*/

/* ================================================
   SIDEBAR - VERSÃO SCROLLÁVEL CORRIGIDA
   ================================================ */

/* Sidebar com estrutura flexível */
.sidebar {
  width: 280px;
  background: var(--dark);
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 1060;
  transition: var(--transition);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Logo fixo no topo */
.sidebar-logo {
  flex-shrink: 0;
  padding: 1.5rem 1.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-logo img {
  max-width: 150px;
  height: auto;
  max-height: 40px;
}

/* Navegação scrollável */
.sidebar-nav {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sidebar-nav-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 0 0.5rem;
  /* Scrollbar personalizado */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Webkit scrollbar para Chrome/Safari */
.sidebar-nav-content::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav-content::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.sidebar-nav-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Lista de navegação */
.sidebar-nav .nav {
  padding: 0 1.5rem;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.sidebar-nav .nav-link i {
  font-size: 1.1rem;
  margin-right: 0.8rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-nav .nav-link span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateX(3px);
}

.sidebar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  border-left: 3px solid #00e676;
}

/* Divisor para seção admin */
.nav-divider {
  padding: 1rem 1rem 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-divider-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Links de admin com estilo diferenciado */
.sidebar-nav .nav-link.admin-link {
  background: rgba(255, 193, 7, 0.1);
  border-left: 2px solid transparent;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.sidebar-nav .nav-link.admin-link:hover {
  background: rgba(255, 193, 7, 0.2);
  border-left-color: #ffc107;
  transform: translateX(2px);
}

.sidebar-nav .nav-link.admin-link.active {
  background: rgba(255, 193, 7, 0.25);
  border-left-color: #ffc107;
  color: #ffc107;
}

/* User info fixo no bottom */
.sidebar-user {
  flex-shrink: 0;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  margin-right: 0.8rem;
  flex-shrink: 0;
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-details h6 {
  margin-bottom: 0.2rem;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-details p {
  margin-bottom: 0.3rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-details .badge {
  font-size: 0.6rem;
  padding: 0.2rem 0.5rem;
}

.user-balance {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.8rem;
  border-radius: var(--border-radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  margin-bottom: 1rem;
}

.balance-label {
  font-size: 0.75rem;
  opacity: 0.8;
}

.balance-value {
  font-weight: bold;
  font-size: 0.9rem;
  color: #00e676;
}

/* Overlay para mobile */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block !important;
  opacity: 1 !important;
}

/* ================================================
   RESPONSIVE - MOBILE
   ================================================ */
@media (max-width: 992px) {
  .sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    height: calc(100vh - 70px);
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1050;
    background: var(--dark);
  }
  
  .sidebar.active {
    transform: translateX(0) !important;
  }
  
  .sidebar-logo {
    min-height: auto;
    padding: 1.5rem;
  }
  
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding-top: 1rem;
  }
}

/* ================================================
   SIDEBAR - SOLUÇÃO COM PADDING BOTTOM
   ================================================ */

/* Sidebar estrutura básica */
.sidebar {
  width: 280px;
  background: var(--dark);
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 1060;
  transition: var(--transition);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

/* Logo fixo no topo */
.sidebar-logo {
  position: relative;
  padding: 1.5rem 1.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.sidebar-logo img {
  max-width: 150px;
  height: auto;
  max-height: 70px;
}

/* Navegação com scroll e padding bottom */
.sidebar-nav {
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  /* SOLUÇÃO: padding-bottom igual à altura da seção do usuário */
  padding-bottom: 200px;
  
  /* Scrollbar personalizado */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Webkit scrollbar */
.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Container da navegação */
.sidebar-nav-content {
  padding: 1rem 0;
}

/* Lista de navegação */
.sidebar-nav .nav {
  padding: 0 1.5rem;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.sidebar-nav .nav-link i {
  font-size: 1.1rem;
  margin-right: 0.8rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-nav .nav-link span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateX(3px);
}

.sidebar-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  border-left: 3px solid #00e676;
}

/* Divisor para seção admin */
.nav-divider {
  padding: 0.8rem 1rem 0.4rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-divider-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Links de admin com estilo diferenciado */
.sidebar-nav .nav-link.admin-link {
  background: rgba(255, 193, 7, 0.1);
  border-left: 2px solid transparent;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.sidebar-nav .nav-link.admin-link:hover {
  background: rgba(255, 193, 7, 0.2);
  border-left-color: #ffc107;
  transform: translateX(2px);
}

.sidebar-nav .nav-link.admin-link.active {
  background: rgba(255, 193, 7, 0.25);
  border-left-color: #ffc107;
  color: #ffc107;
}

/* User info FIXO no bottom */
.sidebar-user {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 280px;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 3;
}

.user-info {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  margin-right: 0.8rem;
  flex-shrink: 0;
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-details h6 {
  margin-bottom: 0.2rem;
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-details p {
  margin-bottom: 0.3rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-details .badge {
  font-size: 0.6rem;
  padding: 0.2rem 0.4rem;
}

.user-balance {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.6rem 0.8rem;
  border-radius: var(--border-radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  margin-bottom: 0.8rem;
}

.balance-label {
  font-size: 0.7rem;
  opacity: 0.8;
}

.balance-value {
  font-weight: bold;
  font-size: 0.85rem;
  color: #00e676;
}

/* Botão de sair */
.sidebar-user .btn {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
}

/* Overlay para mobile */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block !important;
  opacity: 1 !important;
}

/* ================================================
   RESPONSIVE - MOBILE
   ================================================ */
@media (max-width: 992px) {
  .sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    height: calc(100vh - 70px);
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1050;
    background: var(--dark);
  }
  
  .sidebar.active {
    transform: translateX(0) !important;
  }
  
  .sidebar-logo {
    min-height: auto;
    padding: 1.2rem;
  }
  
  .sidebar-nav {
    top: 60px;
    padding-bottom: 180px;
  }
  
  .sidebar-user {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.active + .sidebar-overlay ~ .sidebar .sidebar-user,
  .sidebar.active .sidebar-user {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding-top: 1rem;
  }
}

/* ================================================
   OTIMIZAÇÕES PARA DIFERENTES ALTURAS
   ================================================ */

/* Telas médias */
@media (max-height: 800px) {
  .sidebar-nav {
    padding-bottom: 180px;
  }
  
  .sidebar-nav .nav-link {
    padding: 0.6rem 1rem;
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
  }
  
  .user-balance {
    padding: 0.5rem 0.6rem;
  }
  
  .sidebar-user {
    padding: 0.8rem 1.5rem;
  }
}

/* Telas pequenas */
@media (max-height: 700px) {
  .sidebar-nav {
    padding-bottom: 160px;
  }
  
  .sidebar-logo {
    padding: 1rem;
    min-height: 60px;
  }
  
  .sidebar-logo img {
    max-height: 32px;
  }
  
  .sidebar-nav .nav-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .sidebar-nav .nav-link i {
    font-size: 1rem;
    margin-right: 0.6rem;
  }
  
  .nav-divider {
    padding: 0.6rem 1rem 0.3rem;
  }
}

/* Telas muito pequenas */
@media (max-height: 600px) {
  .sidebar-nav {
    padding-bottom: 140px;
  }
  
  .sidebar-logo {
    padding: 0.8rem;
    min-height: 50px;
  }
  
  .sidebar-logo img {
    max-height: 28px;
  }
  
  .user-details h6 {
    font-size: 0.75rem;
  }
  
  .user-details p {
    font-size: 0.65rem;
  }
  
  .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  
  .sidebar-user {
    padding: 0.6rem 1.2rem;
  }
}

/* ================================================
   CSS ESPECÍFICO PARA PÁGINAS DE AUTH (LOGIN/REGISTER)
   ADICIONE NO FINAL DO SEU STYLE.CSS
   ================================================ */

/* Navbar com fundo fixo nas páginas de auth */
body.auth-page .navbar {
  background: var(--primary) !important;
  box-shadow: var(--shadow) !important;
  backdrop-filter: none !important;
}

body.auth-page .navbar-dark {
  background: var(--primary) !important;
  box-shadow: var(--shadow) !important;
}

/* Container de auth com background gradient */
.auth-container {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

/* Card de auth moderno */
.auth-card {
  border: none;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
}

.auth-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  margin-top:20px;
  padding: 2rem;
  text-align: center;
}

.auth-card-header h4 {
  color: white;
  font-weight: 700;
  margin: 0;
  font-size: 1.5rem;
}

.auth-card-body {
  padding: 3rem 2.5rem;
}

.auth-card-footer {
  background: var(--gray-100);
  border: none;
  padding: 1.5rem 2.5rem;
  text-align: center;
}

/* Form styling para auth */
.auth-form .form-label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.auth-form .form-control {
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius);
  padding: 0.8rem 1rem;
  transition: var(--transition);
  font-size: 0.95rem;
}

.auth-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(46, 78, 173, 0.15);
  outline: none;
}

.auth-form .btn-primary {
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius);
  padding: 0.8rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.auth-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Checkbox styling */
.auth-form .form-check {
  margin: 1.5rem 0;
}

.auth-form .form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.1rem;
  border: 2px solid var(--gray-400);
  border-radius: 4px;
}

.auth-form .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.auth-form .form-check-label {
  margin-left: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-700);
}

/* Alert styling para auth */
.auth-alert {
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.auth-alert-success {
  background: rgba(16, 202, 147, 0.1);
  color: #0d7749;
  border-left: 4px solid var(--success);
}

.auth-alert-danger {
  background: rgba(255, 91, 100, 0.1);
  color: #a02834;
  border-left: 4px solid var(--danger);
}

/* Links no footer */
.auth-card-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.auth-card-footer a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Shapes decorativas de fundo */
.auth-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.auth-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: authFloat 8s ease-in-out infinite;
}

.auth-shape-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.auth-shape-2 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 15%;
  animation-delay: 3s;
}

.auth-shape-3 {
  width: 100px;
  height: 100px;
  top: 50%;
  left: 5%;
  animation-delay: 6s;
}

@keyframes authFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  50% { 
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

/* Card com posição relativa para ficar sobre as shapes */
.auth-card {
  position: relative;
  z-index: 2;
}

/* Responsive para auth */
@media (max-width: 768px) {
  .auth-container {
    padding: 1rem;
  }
  
  .auth-card-body {
    padding: 2rem 1.5rem;
  }
  
  .auth-card-footer {
    padding: 1.2rem 1.5rem;
  }
  
  .auth-shapes .auth-shape {
    display: none;
  }
}

@media (max-width: 576px) {
  .auth-card-header {
    padding: 1.5rem;
  }
  
  .auth-card-header h4 {
    font-size: 1.3rem;
  }
  
  .auth-card-body {
    padding: 1.5rem 1rem;
  }
}

/* CORREÇÃO - Navbar Brand Visível */
.navbar-brand {
  display: flex !important;
  align-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.navbar-brand img {
  height: 60px;
  width: auto;
  max-width: 150px;
  transition: var(--transition);
}

/* ===== MODAL DE COMPRA ÚNICO ===== */
.buy-options-table {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}
.buy-opt-header {
  display: grid;
  grid-template-columns: 60px 80px 1fr;
  padding: 8px 12px;
  background: #f8f9fa;
  font-weight: 600;
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  border-bottom: 1px solid #e0e0e0;
}
.buy-opt-row {
  display: grid;
  grid-template-columns: 60px 80px 1fr;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
}
.buy-opt-row:last-child { border-bottom: none; }
.buy-opt-row:hover { background: #fafbfc; }
.buy-opt-num {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: #f0f2f5; border-radius: 6px;
  font-weight: 700; font-size: 0.85rem; color: #333;
}
.buy-opt-stock {
  font-size: 0.82rem; color: #28a745; font-weight: 600;
}
.btn-buy-now {
  display: inline-block;
  padding: 6px 14px;
  background: #4361ee;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-buy-now:hover { background: #3a56d4; }
.btn-buy-now:disabled { background: #adb5bd; cursor: not-allowed; }

@media (max-width: 480px) {
  .buy-opt-header { grid-template-columns: 40px 60px 1fr; font-size: 0.68rem; }
  .buy-opt-row { grid-template-columns: 40px 60px 1fr; padding: 8px; }
  .btn-buy-now { padding: 5px 10px; font-size: 0.75rem; }
}

/* ===== TABELA DE OPÇÕES DE COMPRA (legacy) ===== */
.options-table {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.options-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  align-items: center;
  padding: 10px 12px;
  background: #f8f9fa;
  font-weight: 600;
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid #e0e0e0;
}

.options-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.options-row:last-child {
  border-bottom: none;
}

.options-row:hover {
  background: #f8fffe;
}

.option-number {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
}

.stock-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.stock-badge.high {
  background: #e8f5e9;
  color: #2e7d32;
}

.stock-badge.medium {
  background: #fff3e0;
  color: #e65100;
}

.stock-badge.low {
  background: #fce4ec;
  color: #c62828;
}

.opt-price-value {
  font-weight: 700;
  color: #2e7d32;
  font-size: 0.95rem;
}

.btn-buy-option {
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
}

/* Responsivo para mobile */
@media (max-width: 480px) {
  .options-header {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    font-size: 0.7rem;
    padding: 8px;
  }
  .options-row {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    padding: 10px 8px;
  }
  .provider-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
  }
  .btn-buy-option {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
}