:root {
   --primary: #0099ff;
   --primary-dark: #0077cc;
   --primary-light: #33adff;
   --secondary: #6a11cb;
   --dark-bg: #080808;
   --card-bg: #111111;
   --card-hover: #1a1a1a;
   --text: #e0e0e0;
   --text-light: #ffffff;
   --text-secondary: #a0a0a0;
   --gradient-1: linear-gradient(135deg, #0099ff, #004de6);
   --gradient-2: linear-gradient(135deg, #00c6ff, #0072ff);
   --border-color: rgba(0, 153, 255, 0.15);
   --transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
   --border-radius: 12px;
}

html, body {
   background-color: var(--dark-bg) !important;
   color: var(--text);
   line-height: 1.6;
   min-height: 100vh;
   width: 100%;
   overflow-x: hidden;
   font-family: 'Poppins', 'Segoe UI', sans-serif;
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   -webkit-font-smoothing: antialiased;
   -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

/* Esconder elementos do header/footer */
.header, .navbar, .logo, .nav-logo, .site-logo, 
.logo-wrapper, .brand-logo, header .logo, header img, 
.navbar-brand, .brand, .brand img, .footer {
   display: none !important;
}

/* Remover padding e margin do header */
header, .header, .navbar {
   padding: 0 !important;
   margin: 0 !important;
   min-height: 0 !important;
   height: 0 !important;
   overflow: hidden !important;
}

/* Layout principal */
main {
   position: relative;
   z-index: 1;
   background-color: transparent;
   min-height: 100vh;
   padding: 0;
   margin: 0;
   display: flex;
   flex-direction: column;
   width: 100%;
}

/* Enhanced Background */
.bg-accent {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: 
      radial-gradient(circle at 20% 30%, rgba(0, 153, 255, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(106, 17, 203, 0.18) 0%, transparent 50%),
      radial-gradient(circle at 50% 50%, rgba(0, 123, 255, 0.1) 0%, transparent 70%);
   z-index: 0;
   pointer-events: none;
}

/* Floating cards background elements */
.floating-cards-container {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   z-index: 0;
   overflow: hidden;
   pointer-events: none;
}

.floating-card {
   position: absolute;
   width: 60px;
   height: 60px;
   border-radius: 12px;
   opacity: 0.07;
   transform: rotate(10deg);
   background: linear-gradient(135deg, var(--primary), var(--secondary));
   box-shadow: 0 4px 30px rgba(0, 153, 255, 0.3);
   animation: float 15s infinite ease-in-out;
   pointer-events: none;
}

@keyframes float {
   0% {
      transform: translateY(0) rotate(0deg);
   }
   50% {
      transform: translateY(-20px) rotate(10deg);
   }
   100% {
      transform: translateY(0) rotate(0deg);
   }
}

/* Particle effect */
.particles {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   pointer-events: none;
   z-index: 0;
}

.particle {
   position: absolute;
   width: 5px;
   height: 5px;
   border-radius: 50%;
   background: var(--primary);
   opacity: 0.2;
   animation: particle-animation 15s infinite linear;
   pointer-events: none;
}

@keyframes particle-animation {
   0% {
      transform: translateY(0) translateX(0);
      opacity: 0;
   }
   50% {
      opacity: 0.3;
   }
   100% {
      transform: translateY(-100px) translateX(50px);
      opacity: 0;
   }
}

/* Welcome Section */
.welcome-section {
   text-align: center;
   max-width: 100%;
   margin: 0;
   position: relative;
   z-index: 2;
   padding: 30px 15px 15px;
}

.welcome-section h1 {
   font-size: 28px;
   color: var(--text-light);
   margin-bottom: 10px;
   font-weight: 700;
   letter-spacing: 0.5px;
   text-shadow: 0 0 15px rgba(0, 153, 255, 0.4);
   background: linear-gradient(135deg, #ffffff, #0099ff);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
}

.welcome-subtitle {
   font-size: 16px;
   color: var(--text-secondary);
   margin-bottom: 15px;
}

/* Dashboard Layout */
.dashboard-container {
   max-width: 100%;
   margin: 0 15px 15px;
   position: relative;
   z-index: 2;
   border-radius: 16px;
   overflow: hidden;
   box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3),
               0 0 40px rgba(0, 153, 255, 0.15);
   background-color: rgba(17, 17, 17, 0.6);
   backdrop-filter: blur(15px);
   -webkit-backdrop-filter: blur(15px);
   border: 1px solid var(--border-color);
   will-change: transform;
   display: flex;
   flex-direction: column;
}

/* Mobile Navigation */
.mobile-nav {
   display: flex;
   padding: 15px;
   background-color: rgba(17, 17, 17, 0.8);
   border-bottom: 1px solid var(--border-color);
   justify-content: center;
   align-items: center;
   position: sticky;
   top: 0;
   z-index: 10;
}

.mobile-nav-title {
   font-size: 16px;
   font-weight: 600;
   color: var(--text-light);
}

/* Category Bar (Horizontal Pills) */
.category-bar {
   padding: 12px 10px;
   display: flex;
   flex-wrap: nowrap;
   gap: 10px;
   overflow-x: auto;
   scrollbar-width: none; /* Hide scrollbar for Firefox */
   -webkit-overflow-scrolling: touch;
   position: sticky;
   top: 46px;
   background-color: rgba(8, 8, 8, 0.8);
   backdrop-filter: blur(10px);
   -webkit-backdrop-filter: blur(10px);
   z-index: 9;
}

.category-bar::-webkit-scrollbar {
   display: none; /* Hide scrollbar for Chrome/Safari */
}

.category-chip {
   display: flex;
   align-items: center;
   padding: 8px 14px;
   background: rgba(17, 17, 17, 0.8);
   border: 1px solid var(--border-color);
   border-radius: 50px;
   cursor: pointer;
   transition: background-color 0.3s ease, border-color 0.3s ease;
   white-space: nowrap;
   min-width: max-content;
   will-change: transform;
}

.category-chip:hover, .category-chip:active {
   background: rgba(0, 153, 255, 0.1);
   border-color: var(--primary-light);
}

.category-chip.active {
   background: var(--gradient-1);
   border-color: var(--primary);
   box-shadow: 0 0 15px rgba(0, 153, 255, 0.4);
}

.chip-icon {
   margin-right: 8px;
   font-size: 14px;
   color: var(--primary);
}

.category-chip.active .chip-icon {
   color: var(--text-light);
}

.category-chip span {
   font-size: 13px;
   font-weight: 500;
}

.category-chip.active span {
   color: var(--text-light);
}

/* Main Content */
.main-content {
   padding: 15px;
   position: relative;
   flex: 1;
}

/* Welcome Card */
.welcome-card {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   text-align: center;
   min-height: 200px;
   padding: 20px 15px;
}

.welcome-icon {
   font-size: 40px;
   color: var(--primary);
   margin-bottom: 20px;
   opacity: 0.7;
}

.welcome-card h2 {
   font-size: 22px;
   color: var(--text-light);
   margin-bottom: 10px;
}

.welcome-card p {
   font-size: 14px;
   color: var(--text-secondary);
   max-width: 300px;
}

/* Service Section */
.service-section {
   animation: fadeIn 0.3s ease;
}

.service-header {
   display: flex;
   align-items: flex-start;
   margin-bottom: 20px;
   padding-bottom: 12px;
   border-bottom: 1px solid var(--border-color);
}

.service-title {
   flex: 1;
}

.service-title h2 {
   color: var(--text-light);
   font-size: 20px;
   margin: 0 0 8px 0;
}

.service-desc {
   color: var(--text-secondary);
   font-size: 13px;
   line-height: 1.4;
}

.service-desc p {
   margin: 0;
}

/* Services Grid */
.services-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 12px;
}

.service-card {
   background-color: rgba(26, 26, 26, 0.6);
   border-radius: 12px;
   overflow: hidden;
   transition: var(--transition);
   border: 1px solid rgba(0, 153, 255, 0.1);
   position: relative;
   will-change: transform;
}

.service-card:hover, .service-card:active {
   transform: translateY(-3px);
   box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3),
               0 0 12px rgba(0, 153, 255, 0.3);
   border: 1px solid var(--primary-light);
}

.service-button {
   width: 100%;
   background: transparent;
   border: none;
   padding: 15px 10px;
   color: var(--text);
   text-align: center;
   cursor: pointer;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
}

.service-content {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 6px;
   width: 100%;
}

.service-quantity {
   font-size: 20px;
   font-weight: 700;
   color: var(--text-light);
}

.service-name {
   font-size: 13px;
   color: var(--text);
   margin: 4px 0;
   font-weight: 500;
   text-align: center;
}

.service-price {
   font-size: 15px;
   color: var(--primary);
   font-weight: 700;
   margin-top: 4px;
}

/* Discount styling */
.discount-card {
   position: relative;
   overflow: hidden;
   border: 1px solid rgba(0, 153, 255, 0.3);
   box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.discount-badge {
   position: absolute;
   top: 10px;
   right: -30px;
   background: var(--gradient-2);
   color: white;
   padding: 2px 30px;
   font-size: 9px;
   font-weight: 600;
   transform: rotate(45deg);
   box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* No Content States */
.no-content, .no-services {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   padding: 30px 15px;
   color: var(--text-secondary);
   text-align: center;
}

.no-services i {
   font-size: 30px;
   margin-bottom: 12px;
   opacity: 0.5;
}

/* Animations - Simplified */
@keyframes fadeIn {
   from { opacity: 0; transform: translateY(8px); }
   to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (min-width: 577px) {
   .dashboard-container {
      max-width: 90%;
      margin: 0 auto 30px;
   }
   
   .services-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
   }
   
   .welcome-section {
      padding: 40px 15px 20px;
   }
   
   .welcome-section h1 {
      font-size: 30px;
   }
}

@media (min-width: 769px) {
   .dashboard-container {
      max-width: 85%;
      border-radius: 18px;
   }
   
   .services-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
   }
   
   .service-title h2 {
      font-size: 22px;
   }
   
   .welcome-section h1 {
      font-size: 32px;
   }
}

@media (min-width: 993px) {
   .dashboard-container {
      max-width: 1100px;
      border-radius: 20px;
   }
   
   .main-content {
      padding: 20px;
   }
   
   .service-quantity {
      font-size: 24px;
   }
   
   .service-name {
      font-size: 14px;
   }
   
   .service-price {
      font-size: 16px;
   }
}

/* Fix para dispositivos muito pequenos */
@media (max-width: 359px) {
   .services-grid {
      grid-template-columns: 1fr;
   }
   
   .service-card {
      max-width: 250px;
      margin: 0 auto;
   }
   
   .welcome-section h1 {
      font-size: 20px;
   }
   
   .mobile-nav-title {
      font-size: 14px;
   }
   
   .category-chip {
      padding: 6px 10px;
   }
   
   .chip-icon {
      font-size: 12px;
   }
   
   .category-chip span {
      font-size: 12px;
   }
}