/**
 * MVC Framework - Clean & Modern Base Styles
 * Responsive, mobile-first design with CSS variables
 */

/* ============================================
   CSS Variables - Easy Customization
   ============================================ */
:root {
  /* Primary Colors */
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-primary-light: #818cf8;

  /* Accent Colors */
  --color-accent: #f59e0b;
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  --color-info: #3b82f6;

  /* Text Colors */
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-text-muted: #9ca3af;

  /* Background Colors */
  --color-bg: #ffffff;
  --color-bg-light: #f9fafb;
  --color-bg-dark: #111827;

  /* Border Colors */
  --color-border: #e5e7eb;
  --color-border-dark: #d1d5db;

  /* Sidebar */
  --sidebar-width: 250px;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height: 1.5;
  --line-height-tight: 1.25;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition: 150ms ease-in-out;
  --transition-slow: 300ms ease-in-out;

  /* Layout */
  --header-height: 64px;
  --container-max: 1200px;
  --container-padding: 1rem;
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: visible;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: var(--space-md);
  color: var(--color-text);
  line-height: var(--line-height);
}

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

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

ul, ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

li {
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

code {
  background-color: var(--color-bg-light);
  color: var(--color-text);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  font-size: 0.875em;
  border: 1px solid var(--color-border);
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-padding);
  position: relative;
  overflow: visible;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: visible;
}

/* Demo Profile Selector */
.demo-profile-selector {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1051;
}

.demo-profile-selector .dropdown {
  position: relative;
}

.demo-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--color-border);
  background: white;
  color: var(--color-text);
  transition: all var(--transition);
  white-space: nowrap;
}

.demo-profile-btn:hover {
  background: var(--color-bg-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.demo-profile-label {
  font-weight: 600;
}

.demo-profile-menu {
  min-width: 180px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 1050;
  background: white;
  /* Bootstrap handles display - don't override */
}

/* Ensure Bootstrap can show the dropdown */
.demo-profile-selector .dropdown.show .dropdown-menu,
.demo-profile-selector .dropdown.show .demo-profile-menu {
  display: block !important;
}

.demo-profile-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  transition: all var(--transition);
}

.demo-profile-menu .dropdown-item:hover {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

.demo-profile-menu .dropdown-item.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
}

.demo-profile-menu .dropdown-item i:first-child {
  width: 20px;
  text-align: center;
}

.demo-profile-menu .dropdown-item i:last-child {
  margin-left: auto;
}

/* Responsive adjustments for demo profile selector */
@media (max-width: 991px) {
  .demo-profile-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .demo-profile-label {
    display: none;
  }
  
  .demo-profile-btn i:first-child {
    margin-right: 0;
  }
  
  /* Keep dropdown positioned relative to button - same as desktop */
  .demo-profile-selector .dropdown {
    position: relative;
  }
  
  .demo-profile-menu {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    top: 100% !important;
    bottom: auto !important;
    margin-top: 0.5rem !important;
    z-index: 1052 !important;
    min-width: 200px;
    max-width: calc(100vw - 2 * var(--container-padding));
    box-shadow: var(--shadow-xl);
  }
  
  /* Ensure header-actions container allows overflow */
  .header-actions {
    position: relative;
    overflow: visible;
  }
  
  /* Ensure header container allows overflow */
  .header .container {
    overflow: visible;
  }
  
  /* Add backdrop on mobile when dropdown is open */
  .demo-profile-selector .dropdown.show::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1050;
    pointer-events: auto;
    animation: fadeIn 0.2s ease;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}

.sidebar-toggle-header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
}

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

.logo-img {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  transition: opacity var(--transition);
}

.logo-img:hover {
  opacity: 0.8;
}

.logo-text {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  text-decoration: none;
}

.logo-text:hover {
  color: var(--color-primary);
}

/* Desktop Navigation */
.navmenu {
  display: flex;
  align-items: center;
}

.navmenu ul {
  list-style: none;
  display: flex;
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
  align-items: center;
}

.navmenu ul li a {
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  display: block;
}

.navmenu ul li a:hover {
  color: var(--color-primary);
  background-color: rgba(99, 102, 241, 0.1);
}

/* Language Selector */
.language-selector {
  margin-left: var(--space-md);
}

.btn-language {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: none;
  border: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition);
  font-size: var(--font-size-base);
}

.btn-language:hover {
  background-color: var(--color-bg-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.lang-code {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

/* General dropdown menu styles - Bootstrap handles display */
.dropdown-menu {
  min-width: 150px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: var(--space-xs);
}

/* Ensure demo profile menu works with Bootstrap - don't override Bootstrap's display */
.demo-profile-selector .dropdown-menu {
  /* Let Bootstrap handle display via .show class */
  position: absolute;
  z-index: 1000;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: all var(--transition);
}

.dropdown-item:hover {
  background-color: var(--color-bg-light);
  color: var(--color-primary);
}

.dropdown-item.active {
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
}

.flag-icon {
  font-size: 1.2em;
  line-height: 1;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--font-size-2xl);
  color: var(--color-text);
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: background-color var(--transition);
}

.mobile-nav-toggle:hover {
  background-color: var(--color-bg-light);
}

/* Mobile Navigation */
@media (max-width: 991px) {
  /* Header navigation menu is only shown when user is not logged in */
  /* When user is logged in, all navigation is in the sidebar */

  .navmenu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
  }

  .navmenu.active {
    max-height: 500px;
  }

  .navmenu ul {
    flex-direction: column;
    gap: 0;
    padding: var(--space-md);
    align-items: stretch;
  }

  .navmenu ul li {
    width: 100%;
  }

  .navmenu ul li a {
    width: 100%;
    padding: var(--space-md);
    border-radius: var(--radius-md);
  }
}

/* ============================================
   Main Content
   ============================================ */
main {
  flex: 1;
  padding-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) 0;
  margin-top: auto;
  text-align: center;
}

.footer p {
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.footer p:last-child {
  margin-bottom: 0;
  color: var(--color-text-light);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-bg-light);
  color: var(--color-text);
  border-color: var(--color-border);
}

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

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

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

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

.btn-outline-secondary:hover {
  background-color: var(--color-bg-light);
  color: var(--color-text);
}

/* ============================================
   Cards
   ============================================ */
.card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
}

/* Card hover effect for clickable cards */
a .card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

a:hover .card-hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

a .card-hover .text-primary {
  transition: transform 0.2s ease;
}

a:hover .card-hover .text-primary {
  transform: translateX(4px);
}

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

.card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.card-body {
  color: var(--color-text);
}

.card-body p {
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.card-body .small {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
}

/* ============================================
   Forms
   ============================================ */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-check-label {
  color: var(--color-text);
  font-weight: var(--font-weight-normal);
}

.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .form-control {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group .btn {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border-left: none;
}

/* ============================================
   Alerts
   ============================================ */
.alert {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  border: 1px solid transparent;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.2);
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: #991b1b;
  border-color: rgba(239, 68, 68, 0.2);
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.2);
}

.alert-info {
  background-color: rgba(59, 130, 246, 0.1);
  color: #1e40af;
  border-color: rgba(59, 130, 246, 0.2);
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-text-light); }

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.shadow { box-shadow: var(--shadow-md); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ============================================
   Sidebar & Layout
   ============================================ */
.main-wrapper {
  display: flex;
  min-height: calc(100vh - 200px);
  overflow-x: visible;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
  padding: 1.5rem 0;
  position: sticky;
  height: calc(100vh - 80px);
  overflow-y: auto;
}

.sidebar-header {
  padding: 0 1.5rem 1rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

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

.sidebar-nav .nav-item {
  margin-bottom: 0.25rem;
}

.sidebar-nav .nav-link {
  padding: 0.75rem 1rem;
  color: var(--color-text);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s;
  text-decoration: none;
}

.sidebar-nav .nav-link:hover {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

.sidebar-nav .nav-link i {
  width: 20px;
  text-align: center;
}

/* Sidebar language selector */
.sidebar-language-selector {
  position: relative;
}

.sidebar-lang-btn {
  cursor: pointer;
}

.sidebar-lang-menu {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin-bottom: 0.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  z-index: 1001;
}

.sidebar-language-selector.active .sidebar-lang-menu {
  display: block;
}

.sidebar-lang-menu .dropdown-item {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
  text-decoration: none;
}

.sidebar-lang-menu .dropdown-item:hover {
  background: var(--color-bg-light);
}

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

.nav-section {
  padding: 0.5rem 1rem;
  margin-top: 1rem;
}

.nav-section-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.main-content {
  flex: 1;
}

.main-content-full {
  width: 100%;
  margin-left: 0;
  overflow: visible;
}

.main-content-full .hero-section {
  overflow: visible;
}

/* Garantir que o wrapper não corte elementos na página inicial */
.main-wrapper:has(.main-content-full) {
  overflow: visible;
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

/* Header sidebar toggle button */
.sidebar-toggle-header {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* Mobile and small tablets */
@media (max-width: 991px) {
  .main-wrapper {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    left: -100%;
    top: 80px;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    width: 280px;
    height: calc(100vh - 80px);
    background: var(--color-bg);
  }

  .sidebar.show {
    left: 0;
  }

  /* Overlay when sidebar is open */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
  }

  .sidebar.show ~ .sidebar-overlay {
    display: block;
    opacity: 1;
  }

  .main-content {
    width: 100%;
    padding: 1rem;
    padding-top: 100px !important;
  }

  /* Header sidebar toggle button remains visible */
  .sidebar-toggle-header {
    display: flex !important;
  }
}

  /* Fix header layouts on mobile */
  .d-flex.justify-content-between {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start !important;
  }

  .d-flex.justify-content-between > div:last-child {
    width: 100%;
  }

  .d-flex.justify-content-between > div:last-child .btn {
    width: 100%;
  }

  /* Card headers with buttons */
  .card-header.d-flex {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start !important;
  }

  .card-header.d-flex > div:last-child {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .card-header.d-flex > div:last-child .btn {
    width: 100%;
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 991px) {
  .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 1rem;
  }

  .col-md-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Tablets and smaller */
@media (max-width: 991px) {
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }

  .container {
    overflow-x: hidden;
  }

  /* Force table-responsive to show cards instead */
  .table-responsive {
    overflow-x: visible !important;
  }

  /* Ensure cards take full width on tablets */
  .col-md-3,
  .col-md-4,
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }

  /* Ensure code elements break properly */
  code {
    word-break: break-all;
    white-space: normal;
  }
}

/* Mobile phones */
@media (max-width: 767px) {
  .col-md-3,
  .col-md-4,
  .col-md-6,
  .col-lg-4,
  .col-lg-8 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }

  /* Prevent horizontal scroll on mobile */
  .table-responsive {
    overflow-x: visible !important;
  }

  /* Ensure all text breaks properly */
  code {
    word-break: break-all;
    white-space: normal;
    font-size: 0.7rem;
  }

  /* Prevent any element from causing overflow */
  * {
    max-width: 100%;
  }

  .card-body {
    overflow-x: hidden;
  }

  .row.g-4 > * {
    margin-bottom: 1rem;
  }
  
  /* Features e Pricing grid: 1 coluna em mobile */
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr !important;
  }

  .card-body {
    padding: 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  h4 {
    font-size: 1.125rem;
  }

  h5 {
    font-size: 1rem;
  }

  h6 {
    font-size: 0.875rem;
  }
}

@media (max-width: 575px) {
  :root {
    --font-size-4xl: 1.875rem;
    --font-size-3xl: 1.5rem;
    --font-size-2xl: 1.25rem;
    --container-padding: 0.75rem;
  }

  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .card {
    padding: var(--space-md);
    margin-bottom: 1rem;
  }

  .card-body {
    padding: 0.75rem;
  }

  .card-header {
    padding: 0.75rem;
  }

  .table-responsive {
    font-size: 0.875rem;
  }
  
  /* Fees map table - better responsive handling */
  .fees-map-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  
  .fees-map-table table {
    min-width: 600px;
    width: 100%;
  }
  
  .fees-map-table th,
  .fees-map-table td {
    white-space: nowrap;
    padding: 0.5rem 0.25rem;
    font-size: 0.8rem;
  }
  
  @media (min-width: 768px) {
    .fees-map-table th,
    .fees-map-table td {
      padding: 0.75rem 0.5rem;
      font-size: 0.875rem;
    }
  }
  
  @media (min-width: 992px) {
    .fees-map-table table {
      min-width: auto;
    }
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }

  /* Ensure tables don't overflow */
  .table {
    font-size: 0.875rem;
  }

  .table th,
  .table td {
    padding: 0.5rem 0.25rem;
  }
}

/* Account cards styling */
.account-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md) !important;
}

.account-card .card-body {
  padding: 1.25rem;
}

/* Additional responsive utilities */
@media (max-width: 991px) {
  /* Improve spacing in cards */
  .card-body .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }

  .card-body .row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  /* Better button spacing */
  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .btn-group .btn:last-child {
    margin-bottom: 0;
  }
}

/* Fix for flex-wrap issues */
.flex-wrap {
  flex-wrap: wrap !important;
}

/* Ensure proper spacing with gap utility */
.row.g-3 > * {
  padding-left: calc(var(--bs-gutter-x, 0.75rem) * 0.5);
  padding-right: calc(var(--bs-gutter-x, 0.75rem) * 0.5);
  margin-top: calc(var(--bs-gutter-y, 1rem) * 0.5);
}

.row.g-3 {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
  margin-left: calc(var(--bs-gutter-x) * -0.5);
  margin-right: calc(var(--bs-gutter-x) * -0.5);
  margin-top: calc(var(--bs-gutter-y) * -0.5);
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* ============================================
   Homepage Styles
   ============================================ */

/* Hero Section */
.hero-section {
  position: relative;
  padding: 8rem 0 6rem;
  overflow: visible;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6366f1 100%);
  color: white;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  opacity: 0.5;
}

.hero-section .container {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.hero-section .row {
  overflow: visible;
}

.hero-section .row > [class*="col-"] {
  overflow: visible;
}

.min-vh-75 {
  min-height: 75vh;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-block;
}

.badge-text {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 90%;
}

.hero-buttons {
  margin-bottom: 1rem;
}

.btn-hero-primary,
.btn-hero-secondary,
.btn-hero-demo {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  text-decoration: none;
}

.btn-hero-primary {
  background: white;
  color: #6366f1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: #6366f1;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: translateY(-2px);
}

.btn-hero-demo {
  background: #f59e0b;
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-hero-demo:hover {
  background: #d97706;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.hero-features {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.feature-item i {
  color: #10b981;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  animation: fadeInRight 0.8s ease-out;
  overflow: visible;
  min-height: 400px;
}

.hero-card {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: visible;
}

.hero-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.card-dots {
  display: flex;
  gap: 0.5rem;
}

.card-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.dashboard-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.preview-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
}

.preview-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.preview-line {
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.preview-line.short {
  width: 60%;
}

/* Garantir que o hero-visual tenha espaço suficiente */
.hero-visual {
  padding-right: 0;
  padding-left: 0;
}

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

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

/* Demo Section */
.demo-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.demo-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.demo-section .container {
  position: relative;
  z-index: 1;
}

.demo-card {
  background: white;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  max-width: 900px;
  margin: 0 auto;
}

.demo-header {
  text-align: center;
  margin-bottom: 3rem;
}

.demo-icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.demo-icon-wrapper i {
  font-size: 2.5rem;
  color: white;
}

.demo-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 1rem;
}

.demo-description {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

.demo-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.demo-stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.demo-stat-item:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon i {
  font-size: 1.5rem;
  color: white;
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1f2937;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.125rem;
}

.stat-subtitle {
  font-size: 0.75rem;
  color: #9ca3af;
}

.demo-features {
  background: #f9fafb;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.demo-features-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.demo-features-title i {
  color: #6366f1;
  font-size: 1.5rem;
}

.demo-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.demo-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #4b5563;
}

.demo-feature-item i {
  color: #10b981;
  font-size: 1.125rem;
}

.demo-cta {
  text-align: center;
}

.btn-demo-primary {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-demo-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
  color: white;
}

.demo-note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.demo-note i {
  color: #10b981;
}

/* Features Section */
.features-section {
  padding: 6rem 0;
  background: #f9fafb;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Tablets: 2 colunas (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
  }
}

/* Desktop: 3 colunas (992px+) */
@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #e5e7eb;
}

.feature-card-inner {
  text-align: center;
}

.feature-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.feature-icon-wrapper i {
  font-size: 2rem;
}

.icon-primary {
  background: rgba(99, 102, 241, 0.1);
}

.icon-primary i {
  color: #6366f1;
}

.icon-success {
  background: rgba(16, 185, 129, 0.1);
}

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

.icon-info {
  background: rgba(59, 130, 246, 0.1);
}

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

.icon-warning {
  background: rgba(245, 158, 11, 0.1);
}

.icon-warning i {
  color: #f59e0b;
}

.icon-danger {
  background: rgba(239, 68, 68, 0.1);
}

.icon-danger i {
  color: #ef4444;
}

.icon-secondary {
  background: rgba(107, 114, 128, 0.1);
}

.icon-secondary i {
  color: #6b7280;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.feature-description {
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* Pricing Section */
.pricing-section {
  padding: 6rem 0;
  background: white;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Tablets: 2 colunas (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
    max-width: 100%;
  }
}

/* Desktop: 3 colunas (992px+) */
@media (min-width: 992px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

.pricing-card {
  background: white;
  border-radius: 20px;
  border: 2px solid #e5e7eb;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card-featured {
  border-color: #6366f1;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.pricing-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #6366f1;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 1;
}

.pricing-card-header {
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  padding: 2.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.pricing-card-featured .pricing-card-header {
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  color: white;
}

.pricing-plan-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #1f2937;
}

.pricing-card-featured .pricing-plan-name {
  color: white;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: #1f2937;
}

.pricing-card-featured .price-amount {
  color: white;
}

.price-period {
  font-size: 1rem;
  color: #6b7280;
}

.pricing-card-featured .price-period {
  color: rgba(255, 255, 255, 0.9);
}

.pricing-card-body {
  padding: 2rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: #4b5563;
}

.pricing-features li i {
  color: #10b981;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.pricing-card-footer {
  padding: 2rem;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.btn-pricing {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: 2px solid #6366f1;
  background: white;
  color: #6366f1;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
  text-align: center;
}

.btn-pricing:hover {
  background: #6366f1;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-pricing-featured {
  background: #6366f1;
  color: white;
}

.btn-pricing-featured:hover {
  background: #4f46e5;
  color: white;
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 50%, #667eea 100%);
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}

.btn-cta-primary {
  background: white;
  color: #6366f1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  color: #6366f1;
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-hero-primary,
  .btn-hero-secondary,
  .btn-hero-demo {
    width: 100%;
    justify-content: center;
  }

  .hero-section {
    overflow: hidden;
  }

  .hero-visual {
    overflow: hidden;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Tablets e monitores médios */
@media (min-width: 769px) and (max-width: 1000px) {
  .hero-section {
    overflow: visible;
    padding-left: 0;
    padding-right: 0;
  }

  .hero-section .container {
    overflow: visible;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    max-width: 100%;
  }

  .hero-section .row {
    margin-left: 0;
    margin-right: 0;
    overflow: visible;
  }

  .hero-section .row > [class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    overflow: visible;
  }

  .hero-visual {
    overflow: visible;
    position: relative;
    padding-right: 0;
  }

  .hero-card {
    overflow: visible;
  }
}

@media (min-width: 1001px) and (max-width: 1200px) {
  .hero-section {
    overflow: visible;
  }

  .hero-section .container {
    overflow: visible;
  }

  .hero-visual {
    overflow: visible;
  }

  .hero-card {
    overflow: visible;
  }
}

/* Mobile responsive styles */
@media (max-width: 767px) {
  .demo-card {
    padding: 2rem 1.5rem;
  }

  .demo-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .pricing-grid,
  .features-grid {
    grid-template-columns: 1fr !important;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .header,
  .footer,
  .btn,
  .navmenu {
    display: none;
  }

  main {
    padding-top: 0;
  }
}
