﻿/*
==========================================================================
xcafe - GLOBAL STYLES UNIFICADO
Sistema de Design baseado em BOOTSTRAP 5 PURO + Token Creator
==========================================================================
*/

/* Bootstrap 5 CSS Variables Override - xcafe Theme */
:root {
  /* xcafe Brand Colors */
  --bs-primary: #f85d23;
  --bs-primary-rgb: 248, 93, 35;
  --bs-secondary: #6b7280;
  --bs-secondary-rgb: 107, 114, 128;
  --bs-success: #10b981;
  --bs-success-rgb: 16, 185, 129;
  --bs-danger: #ef4444;
  --bs-danger-rgb: 239, 68, 68;
  --bs-warning: #f59e0b;
  --bs-warning-rgb: 245, 158, 11;
  --bs-info: #3b82f6;
  --bs-info-rgb: 59, 130, 246;
  --bs-light: #f8fafc;
  --bs-light-rgb: 248, 250, 252;
  --bs-dark: #1a1a1a;
  --bs-dark-rgb: 26, 26, 26;
  
  /* Bootstrap Body & Background - Dark Theme */
  --bs-body-bg: #0a0a0a;
  --bs-body-color: #ffffff;
  --bs-body-color-rgb: 255, 255, 255;
  --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.6;
  
  /* Bootstrap Text Colors - Dark Theme */
  --bs-emphasis-color: #ffffff;
  --bs-emphasis-color-rgb: 255, 255, 255;
  --bs-secondary-color: #e5e7eb;
  --bs-secondary-color-rgb: 229, 231, 235;
  --bs-tertiary-color: #9ca3af;
  --bs-tertiary-color-rgb: 156, 163, 175;
  
  /* Bootstrap Link Colors */
  --bs-link-color: #f85d23;
  --bs-link-color-rgb: 248, 93, 35;
  --bs-link-hover-color: #fbbf24;
  --bs-link-hover-color-rgb: 251, 191, 36;
  
  /* Bootstrap Border Colors - Dark Theme */
  --bs-border-color: #374151;
  --bs-border-color-translucent: rgba(55, 65, 81, 0.175);
  
  /* Bootstrap Form Colors - Dark Theme */
  --bs-form-valid-color: #10b981;
  --bs-form-invalid-color: #ef4444;
  
  /* Bootstrap Card/Surface - Dark Theme */
  --bs-card-bg: #1a1a1a;
  --bs-modal-bg: #1a1a1a;
  --bs-offcanvas-bg: #1a1a1a;
  --bs-dropdown-bg: #1a1a1a;
  --bs-popover-bg: #1a1a1a;
  --bs-tooltip-bg: #1a1a1a;
  
  /* xcafe Custom Variables (compatibilidade com cÃ³digo existente) */
  --primary: #f85d23;
  --primary-dark: #d97706;
  --primary-light: #fbbf24;
  --background-color: #0a0a0a;
  --surface-color: #1a1a1a;
  --card-color: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #e5e7eb;
  --text-muted: #9ca3af;
  --border-color: #374151;
  --contrast-color: #ffffff;
  --default-color: #ffffff;
  
  /* Token Creator Variables */
  --token-primary: var(--bs-primary);
  --token-secondary: var(--bs-secondary);
  --token-success: var(--bs-success);
  --token-warning: var(--bs-warning);
  --token-danger: var(--bs-danger);
  --token-info: var(--bs-info);
  --token-light: var(--bs-light);
  --token-dark: var(--bs-dark);
  
  /* Typography */
  --heading-font: 'Inter', sans-serif;
  --body-font: 'Inter', sans-serif;
  --mono-font: 'Courier New', monospace;
  
  /* Transitions */
  --transition: all 0.3s ease;
}

/* Body Dark Theme Adjustment */
body {
  background-color: var(--bs-body-bg) !important;
  color: var(--bs-body-color) !important;
  font-family: var(--bs-body-font-family) !important;
  line-height: var(--bs-body-line-height) !important;
  padding-top: 76px; /* EspaÃ§o para navbar Bootstrap */
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header fixo usando Bootstrap */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030; /* Bootstrap z-index for fixed elements */
  height: 70px;
  background-color: #1a1a1a;
  border-bottom: 1px solid var(--bs-border-color);
  backdrop-filter: blur(10px);
}

/* Footer usando Bootstrap */
.footer-wrapper {
  background-color: #1a1a1a;
  border-top: 1px solid var(--bs-border-color);
  margin-top: auto;
}

/* Bootstrap Form Controls - Dark Theme */
.form-control {
  background-color: #2d2d2d !important;
  border-color: var(--bs-border-color) !important;
  color: var(--bs-body-color) !important;
}

.form-control:focus {
  background-color: #2d2d2d !important;
  border-color: var(--bs-primary) !important;
  color: var(--bs-body-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(248, 93, 35, 0.25) !important;
}

.form-control::placeholder {
  color: var(--bs-tertiary-color) !important;
}

.form-control:valid {
  border-color: var(--bs-success) !important;
  background: rgba(16, 185, 129, 0.05);
}

.form-control:invalid:not(:placeholder-shown) {
  border-color: var(--bs-danger) !important;
  background: rgba(239, 68, 68, 0.05);
}

.form-select {
  background-color: #2d2d2d !important;
  border-color: var(--bs-border-color) !important;
  color: var(--bs-body-color) !important;
}

.form-select:focus {
  background-color: #2d2d2d !important;
  border-color: var(--bs-primary) !important;
  color: var(--bs-body-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(248, 93, 35, 0.25) !important;
}

/* Bootstrap Cards - Dark Theme */
.card {
  background-color: var(--bs-card-bg) !important;
  border-color: var(--bs-border-color) !important;
  color: var(--bs-body-color) !important;
}

.card-header {
  background-color: #2d2d2d !important;
  border-color: var(--bs-border-color) !important;
  color: var(--bs-body-color) !important;
}

.card-body {
  color: var(--bs-body-color) !important;
}

/* Bootstrap Buttons - MantÃ©m padrÃ£o mas ajusta cores */
.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: #d97706;
  --bs-btn-hover-border-color: #d97706;
  --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
  --bs-btn-active-bg: #d97706;
  --bs-btn-active-border-color: #d97706;
  color: #000 !important; /* Texto preto no botÃ£o laranja */
}

.btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-hover-color: #000;
  --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
  --bs-btn-active-bg: var(--bs-primary);
  --bs-btn-active-border-color: var(--bs-primary);
  --bs-btn-active-color: #000;
}

.btn-outline-warning {
  background: transparent;
  border: 2px solid var(--bs-warning);
  color: var(--bs-warning);
  --bs-btn-color: var(--bs-warning);
  --bs-btn-border-color: var(--bs-warning);
  --bs-btn-hover-bg: var(--bs-warning);
  --bs-btn-hover-border-color: var(--bs-warning);
  --bs-btn-hover-color: #000;
  --bs-btn-focus-shadow-rgb: var(--bs-warning-rgb);
  --bs-btn-active-bg: var(--bs-warning);
  --bs-btn-active-border-color: var(--bs-warning);
  --bs-btn-active-color: #000;
}

.btn-outline-warning:hover:not(:disabled) {
  background: var(--bs-warning);
  color: #000;
}

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

/* Bootstrap Alerts - Dark Theme */
.alert-success {
  --bs-alert-bg: rgba(16, 185, 129, 0.1);
  --bs-alert-color: #6ee7b7;
  --bs-alert-border-color: var(--bs-success);
  border-left: 4px solid var(--bs-success);
}

.alert-danger {
  --bs-alert-bg: rgba(239, 68, 68, 0.1);
  --bs-alert-color: #fca5a5;
  --bs-alert-border-color: var(--bs-danger);
  border-left: 4px solid var(--bs-danger);
}

.alert-warning {
  --bs-alert-bg: rgba(245, 158, 11, 0.1);
  --bs-alert-color: #fbbf24;
  --bs-alert-border-color: var(--bs-warning);
  border-left: 4px solid var(--bs-warning);
}

.alert-info {
  --bs-alert-bg: rgba(59, 130, 246, 0.1);
  --bs-alert-color: #93c5fd;
  --bs-alert-border-color: var(--bs-info);
  border-left: 4px solid var(--bs-info);
}

/* Bootstrap Progress - Dark Theme */
.progress {
  background-color: #374151 !important;
}

.progress-bar {
  background-color: var(--bs-primary) !important;
}

.progress-bar-animated {
  animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
  0% { background-position: 1rem 0; }
  100% { background-position: 0 0; }
}

/* Bootstrap Text Colors */
.text-primary {
  color: var(--bs-primary) !important;
}

.text-secondary {
  color: var(--bs-secondary-color) !important;
}

.text-muted {
  color: var(--bs-tertiary-color) !important;
}

.text-success {
  color: var(--bs-success) !important;
}

.text-danger {
  color: var(--bs-danger) !important;
}

.text-warning {
  color: var(--bs-warning) !important;
}

.text-info {
  color: var(--bs-info) !important;
}

/* Bootstrap Background Colors */
.bg-primary {
  background-color: var(--bs-primary) !important;
}

.bg-secondary {
  background-color: var(--bs-dark) !important;
}

/* .bg-dark {
  background-color: #1a1a1a !important;
} */

/* Bootstrap Border Colors */
.border-primary {
  border-color: var(--bs-primary) !important;
}

.border-secondary {
  border-color: var(--bs-border-color) !important;
}

/* Loading Screen - Usando Bootstrap */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  z-index: 1070; /* Bootstrap z-index for modals */
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--bs-primary);
  animation: spin 1s ease-in-out infinite;
}

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

/* Bootstrap Modal Dark Theme */
.modal-content {
  background-color: var(--bs-modal-bg) !important;
  color: var(--bs-body-color) !important;
  border-color: var(--bs-border-color) !important;
}

.modal-header {
  border-color: var(--bs-border-color) !important;
}

.modal-footer {
  border-color: var(--bs-border-color) !important;
}

/* Bootstrap Dropdown Dark Theme */
.dropdown-menu {
  background-color: var(--bs-dropdown-bg) !important;
  border-color: var(--bs-border-color) !important;
}

.dropdown-item {
  color: var(--bs-body-color) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: rgba(248, 93, 35, 0.1) !important;
  color: var(--bs-primary) !important;
}

/* Bootstrap Table Dark Theme */
.table {
  color: var(--bs-body-color) !important;
}

.table-dark {
  --bs-table-bg: #1a1a1a;
  --bs-table-striped-bg: #2d2d2d;
  --bs-table-hover-bg: #374151;
  --bs-table-border-color: var(--bs-border-color);
}

/*
==========================================================================
TOKEN CREATOR SPECIFIC STYLES
==========================================================================
*/

/* Token Creator Container */
.token-creator-container {
  background: var(--background-color);
  min-height: calc(100vh - 120px);
  padding: 80px 0 40px 0;
}

.creator-card {
  background: var(--surface-color);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: 1px solid #333;
  padding: 30px;
}

/* Creator Header */
.creator-header {
  background: linear-gradient(135deg, var(--token-primary) 0%, #d97706 100%);
  color: var(--contrast-color);
  padding: 30px;
  text-align: left;
  margin: -30px -30px 30px -30px;
  border-radius: 20px 20px 0 0;
}

.creator-header h1 {
  color: var(--contrast-color);
  font-family: var(--heading-font);
  margin-bottom: 10px;
  font-size: 2.5rem;
  font-weight: 700;
}

/* Progress Steps Melhorado */
.progress-steps {
  padding: 20px 0;
  border-bottom: 1px solid #333;
}

.step-item {
  position: relative;
}

.step-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 3px solid var(--bs-secondary);
}

.step-item.active .step-circle {
  background: var(--bs-primary) !important;
  color: var(--bs-dark) !important;
  border-color: var(--bs-primary);
  transform: scale(1.1);
}

.step-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.step-item.active .step-label {
  color: var(--bs-primary) !important;
  font-weight: 600;
}

/* Token Creator Main */
.token-creator-main {
  background: var(--background-color);
  min-height: calc(100vh - 120px);
}

/* Wallet Connection Section */
.wallet-connection-section .card {
  transition: all 0.3s ease;
}

.wallet-connection-section .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(248, 93, 35, 0.2);
}

/* Form Styling */
.form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(248, 93, 35, 0.25);
}

.token-basic-info .form-control {
  transition: border-color 0.3s ease;
}

.token-basic-info .form-control:focus {
  border-color: var(--bs-primary);
  background-color: #1a1a1a;
}

/* Step Content */
.step-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.step-content.active {
  display: block;
}

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

.step-simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  transition: var(--transition);
}

.step-simple:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #333;
  z-index: 1;
}

.step-simple.active:not(:last-child)::after {
  background: var(--token-primary);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #333;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.step-simple.active .step-number {
  background: var(--token-primary);
  color: #000;
}

.step-simple.completed .step-number {
  background: var(--token-success);
  color: #000;
}

.step-label {
  font-size: 0.875rem;
  color: #666;
  text-align: center;
  transition: var(--transition);
}

.step-simple.active .step-label {
  color: var(--token-primary);
  font-weight: 600;
}

.step-simple.completed .step-label {
  color: var(--token-success);
}

/* Form Steps */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

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

/* Wallet Connection Enhanced Styles */
.wallet-status-connected {
  background-color: rgba(16, 185, 129, 0.1) !important;
  border-color: #10b981 !important;
  color: #6ee7b7 !important;
  font-family: 'Courier New', monospace !important;
  font-weight: 600;
}

.connection-section.connected-state .card {
  border-color: #10b981 !important;
}

.network-info {
  font-size: 0.875rem;
  color: #9ca3af !important;
  font-family: 'Courier New', monospace;
  font-weight: 500;
}

.network-info .chain-id {
  color: #9ca3af !important;
  font-family: 'Courier New', monospace;
  font-weight: 500;
}

.network-info #current-network {
  color: var(--token-warning) !important;
  font-weight: 600;
}

/* Hero Section usando Bootstrap */
.hero-section {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.hero-title {
  font-weight: 700;
  font-family: var(--bs-body-font-family);
}

.gradient-text {
  background: linear-gradient(135deg, var(--bs-primary), #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Step Navigation */
.step-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.nav-buttons {
  display: flex;
  gap: 15px;
}

/* Responsive adjustments using Bootstrap breakpoints */
@media (max-width: 767.98px) {
  body {
    padding-top: 60px;
  }
  
  .header-wrapper {
    height: 60px;
  }
  
  .progress-steps-simple {
    flex-direction: column;
    gap: 20px;
  }
  
  .step-simple:not(:last-child)::after {
    display: none;
  }
  
  .creator-header h1 {
    font-size: 2rem;
  }
  
  .token-creator-container {
    padding: 60px 0 20px 0;
  }
}

@media (max-width: 575.98px) {
  body {
    padding-top: 50px;
  }
  
  .header-wrapper {
    height: 50px;
  }
  
  .creator-card {
    padding: 20px;
  }
  
  .creator-header {
    margin: -20px -20px 20px -20px;
    padding: 20px;
  }
}

/* Print Styles */
@media print {
  .header-wrapper,
  .footer-wrapper {
    display: none !important;
  }
  
  body {
    padding-top: 0;
    background: white !important;
    color: black !important;
  }
}

/*
==========================================================================
HOMEPAGE SPECIFIC STYLES
==========================================================================
*/

/* Hero Section Enhancements */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(248, 93, 35, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

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

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

.hero-image img {
  filter: drop-shadow(0 20px 40px rgba(248, 93, 35, 0.3));
  /* animation: float 6s ease-in-out infinite; */
}

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

/* Badge Styling */
.badge {
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Blockchain Logos */
.blockchain-logo {
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
}

.blockchain-logo:hover {
  transform: translateY(-5px);
  background-color: rgba(248, 93, 35, 0.1);
}

/* Feature Cards Enhancement */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(248, 93, 35, 0.1) !important;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(248, 93, 35, 0.2) !important;
  border-color: rgba(248, 93, 35, 0.3) !important;
}

.feature-icon i {
  transition: transform 0.3s ease;
}

.card:hover .feature-icon i {
  transform: scale(1.1);
}

/* Step Cards */
.step-card {
  padding: 2rem 1rem;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
}

.step-number .badge {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem !important;
  font-weight: bold;
}

/* Statistics Cards */
.stat-card {
  padding: 2rem;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.05);
}

.stat-item {
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
}

/* Enhanced Gradients */
.gradient-text {
  background: linear-gradient(135deg, var(--bs-primary) 0%, #fbbf24 50%, var(--bs-info) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(20deg); }
}

/* Section Spacing */
section {
  position: relative;
}

/* CTA Section Enhancement */
.py-5.bg-dark {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%) !important;
}

/* Smooth Transitions for All Interactive Elements */
a, button, .btn {
  transition: all 0.3s ease;
}

/* Enhanced Focus States */
.btn:focus,
.btn:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(248, 93, 35, 0.5) !important;
}

/*
==========================================================================
XCAFE ADVANCED ANIMATIONS & EFFECTS
Sistema de animações reutilizáveis para todas as páginas
==========================================================================
*/

/* Advanced Background Effects */
.xcafe-gradient-bg {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.xcafe-gradient-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(248, 93, 35, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Logo Effects */
.xcafe-logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.xcafe-logo {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(248, 93, 35, 0.3);
  animation: xcafe-pulse 2s infinite;
  transition: transform 0.3s ease;
}

.xcafe-logo:hover {
  transform: scale(1.1);
}

.xcafe-logo-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(135deg, #f85d23, #f59e0b);
  border-radius: 30px;
  opacity: 0.2;
  filter: blur(20px);
  z-index: -1;
  animation: xcafe-glow 3s ease-in-out infinite alternate;
}

/* Text Effects */
.xcafe-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f85d23 0%, #f59e0b 50%, #fbbf24 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.xcafe-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.xcafe-description {
  font-size: 1.2rem;
  color: #e5e7eb;
  font-weight: 400;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Badges and Buttons */
.xcafe-badge {
  background: linear-gradient(135deg, #f85d23 0%, #f59e0b 100%);
  color: #ffffff;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 10px 30px rgba(248, 93, 35, 0.4);
  border: none;
  cursor: default;
  transition: transform 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.xcafe-badge:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(248, 93, 35, 0.6);
}

/* Feature Cards */
.xcafe-features {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.xcafe-feature-item {
  background: rgba(248, 93, 35, 0.1);
  border: 1px solid rgba(248, 93, 35, 0.3);
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  max-width: 200px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.xcafe-feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(248, 93, 35, 0.3);
  background: rgba(248, 93, 35, 0.15);
}

.xcafe-feature-icon {
  font-size: 2.5rem;
  color: #f85d23;
  margin-bottom: 1rem;
  display: block;
}

.xcafe-feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.xcafe-feature-desc {
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Floating Particles Animation */
.xcafe-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.xcafe-particle {
  position: absolute;
  background: linear-gradient(135deg, #f85d23, #f59e0b);
  border-radius: 50%;
  opacity: 0.1;
  animation: xcafe-float 6s ease-in-out infinite;
}

.xcafe-particle:nth-child(1) {
  width: 20px;
  height: 20px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.xcafe-particle:nth-child(2) {
  width: 30px;
  height: 30px;
  top: 50%;
  left: 80%;
  animation-delay: 2s;
}

.xcafe-particle:nth-child(3) {
  width: 15px;
  height: 15px;
  top: 80%;
  left: 20%;
  animation-delay: 4s;
}

.xcafe-particle:nth-child(4) {
  width: 25px;
  height: 25px;
  top: 30%;
  left: 90%;
  animation-delay: 1s;
}

/* Container and Layout Classes */
.xcafe-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}

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

/* Animation Classes */
.xcafe-fade-in-up {
  animation: xcafe-fadeInUp 1s ease-out;
}

.xcafe-slide-in-left {
  animation: xcafe-slideInLeft 1s ease-out 0.3s both;
}

.xcafe-slide-in-right {
  animation: xcafe-slideInRight 1s ease-out 0.6s both;
}

.xcafe-fade-in {
  animation: xcafe-fadeIn 1s ease-out 0.9s both;
}

.xcafe-bounce-in {
  animation: xcafe-bounceIn 1s ease-out 1.2s both;
}

.xcafe-features-animate {
  animation: xcafe-fadeInUp 1s ease-out 1.5s both;
}

/* Keyframe Animations */
@keyframes xcafe-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes xcafe-slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes xcafe-slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes xcafe-bounceIn {
  from {
    opacity: 0;
    transform: scale(0.3) translateY(50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes xcafe-pulse {
  0% {
    box-shadow: 0 20px 60px rgba(248, 93, 35, 0.3);
  }
  50% {
    box-shadow: 0 25px 80px rgba(248, 93, 35, 0.5);
  }
  100% {
    box-shadow: 0 20px 60px rgba(248, 93, 35, 0.3);
  }
}

@keyframes xcafe-glow {
  from {
    opacity: 0.2;
  }
  to {
    opacity: 0.4;
  }
}

@keyframes xcafe-float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(-10px) rotate(240deg);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .xcafe-title {
    font-size: 2.5rem;
  }
  
  .xcafe-subtitle {
    font-size: 1.4rem;
  }
  
  .xcafe-description {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .xcafe-logo {
    width: 80px;
    height: 80px;
  }
  
  .xcafe-features {
    padding: 0 1rem;
  }
  
  .xcafe-feature-item {
    max-width: 150px;
    padding: 1rem;
  }
}

/* Utility Classes for Easy Implementation */
.xcafe-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
}

.xcafe-text-gradient {
  background: linear-gradient(135deg, #f85d23, #f59e0b);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.xcafe-hover-lift {
  transition: transform 0.3s ease;
}

.xcafe-hover-lift:hover {
  transform: translateY(-10px);
}

.xcafe-glass-effect {
  background: rgba(248, 93, 35, 0.1);
  border: 1px solid rgba(248, 93, 35, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 15px;
}

/* Loading Animation for Page */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/*
==========================================================================
EXEMPLO USO WIDGET - STYLES ESPECÍFICOS
==========================================================================
*/

/* Logo Header */
.widget-demo-logo {
  width: 160px;
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 4px 8px rgba(248, 93, 35, 0.3));
  transition: all 0.3s ease;
}

.widget-demo-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 12px rgba(248, 93, 35, 0.4));
}

/* Widget Container */
.widget-container {
  background: linear-gradient(135deg, 
    rgba(248, 93, 35, 0.05) 0%, 
    rgba(26, 26, 26, 0.95) 50%,
    rgba(248, 93, 35, 0.05) 100%);
  border: 2px solid rgba(248, 93, 35, 0.2);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.widget-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(248, 93, 35, 0.1) 50%,
    transparent 70%
  );
  pointer-events: none;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* Status Indicators */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.status-indicator.loading {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

.status-indicator.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.status-indicator.error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.status-indicator.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.status-indicator.loading .status-dot {
  background: #3b82f6;
  animation: pulse 2s ease-in-out infinite;
}

.status-indicator.success .status-dot {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.status-indicator.error .status-dot {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.status-indicator.warning .status-dot {
  background: #f59e0b;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

/* Loading Animation */
.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-left-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Technical Info Cards */
.tech-info-card {
  background: linear-gradient(135deg, rgba(45, 45, 45, 0.8), rgba(26, 26, 26, 0.9));
  border: 1px solid rgba(248, 93, 35, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-info-card:hover {
  border-color: rgba(248, 93, 35, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(248, 93, 35, 0.15);
}

.tech-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bs-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-info-card:hover::before {
  opacity: 1;
}

.tech-info-title {
  color: var(--bs-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tech-info-value {
  color: var(--bs-body-color);
  font-family: var(--mono-font);
  font-size: 0.875rem;
  word-break: break-all;
  background: rgba(248, 93, 35, 0.05);
  padding: 0.5rem;
  border-radius: 6px;
  border-left: 3px solid var(--bs-primary);
}

/* Debug Panel */
.debug-panel {
  background: rgba(26, 26, 26, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.5);
  border-radius: 8px;
  padding: 1rem;
  font-family: var(--mono-font);
  font-size: 0.75rem;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 1rem;
}

.debug-log {
  margin: 0;
  padding: 0;
  color: #9ca3af;
  line-height: 1.4;
}

.debug-log .timestamp {
  color: #6b7280;
}

.debug-log .level-info {
  color: #3b82f6;
}

.debug-log .level-success {
  color: #10b981;
}

.debug-log .level-warning {
  color: #f59e0b;
}

.debug-log .level-error {
  color: #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
  .widget-demo-logo {
    width: 120px;
    margin-bottom: 1.5rem;
  }
  
  .widget-container {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .tech-info-card {
    padding: 1rem;
  }
  
  .tech-info-value {
    font-size: 0.75rem;
  }
  
  .debug-panel {
    font-size: 0.7rem;
    max-height: 200px;
  }
}

@media (max-width: 576px) {
  .widget-container {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .status-indicator {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  
  .tech-info-title {
    font-size: 0.75rem;
  }
}

/*
==========================================================================
QR CODES MOBILE INTERFACE - Estilos Otimizados para Celular 2024
==========================================================================
*/

.mobile-qr-container {
  background: var(--card-bg);
  border: 3px solid var(--bs-success);
  border-radius: 20px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 10px 30px rgba(40, 167, 69, 0.2);
}

.mobile-alert {
  background: linear-gradient(135deg, var(--bs-success), var(--bs-info));
  border: none;
  color: white;
  border-radius: 15px;
  font-size: 1.1rem;
  padding: 20px;
  text-align: center;
}

/* BOTÕES GRANDES PARA MOBILE */
.mobile-wallet-btn {
  background: linear-gradient(135deg, var(--bs-success), var(--bs-info));
  border: 3px solid transparent;
  border-radius: 15px;
  padding: 20px;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-wallet-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(40, 167, 69, 0.4);
  border-color: var(--bs-warning);
}

.mobile-wallet-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.mobile-wallet-icon {
  font-size: 2rem;
  margin-bottom: 5px;
}

/* QR CODE MOBILE */
.mobile-qr-section {
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed var(--bs-warning);
  border-radius: 15px;
  padding: 25px;
  margin: 20px 0;
}

.qr-container-mobile {
  position: relative;
  display: inline-block;
  background: white;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.qr-mobile-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.qr-mobile-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
}

.xcafe-badge-mobile {
  background: var(--bs-success);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* INSTRUÇÕES MOBILE */
.mobile-instructions {
  background: rgba(59, 130, 246, 0.1);
  border-radius: 15px;
  padding: 15px;
  border: 1px solid var(--bs-info);
}

.mobile-help summary {
  cursor: pointer;
  outline: none;
  background: var(--bs-info);
  color: white;
  border-radius: 10px;
  padding: 15px;
  transition: all 0.3s ease;
}

.mobile-help summary:hover {
  background: var(--bs-primary);
  transform: translateY(-2px);
}

.mobile-help[open] summary {
  background: var(--bs-success);
  border-radius: 10px 10px 0 0;
}

/* OPÇÕES AVANÇADAS */
.mobile-advanced {
  background: rgba(107, 114, 128, 0.1);
  border-radius: 15px;
  padding: 15px;
  border: 1px solid var(--bs-secondary);
}

.mobile-advanced-options summary {
  cursor: pointer;
  outline: none;
  background: var(--bs-secondary);
  color: white;
  border-radius: 10px;
  padding: 15px;
  transition: all 0.3s ease;
}

.mobile-advanced-options summary:hover {
  background: var(--bs-dark);
  transform: translateY(-1px);
}

/* RESPONSIVIDADE MOBILE ESPECÍFICA */
@media (max-width: 768px) {
  .mobile-qr-container {
    padding: 20px;
    margin: 15px 0;
    border-width: 2px;
  }
  
  .mobile-alert {
    padding: 15px;
    font-size: 1rem;
  }
  
  .mobile-wallet-btn {
    padding: 15px;
    font-size: 0.95rem;
  }
  
  .mobile-wallet-icon {
    font-size: 1.5rem;
  }
  
  .mobile-qr-section {
    padding: 15px;
    margin: 15px 0;
  }
  
  .qr-container-mobile {
    padding: 10px;
  }
  
  .mobile-help summary,
  .mobile-advanced-options summary {
    padding: 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .mobile-qr-container {
    padding: 15px;
    border-radius: 15px;
  }
  
  .mobile-wallet-btn {
    padding: 12px;
  }
  
  .mobile-wallet-btn .d-flex {
    flex-direction: column;
    text-align: center;
  }
  
  .mobile-wallet-btn .bi-arrow-right-circle {
    margin-top: 10px;
    font-size: 1.5rem !important;
  }
}

/* ANIMAÇÕES MOBILE */
@keyframes mobile-pulse {
  0% { 
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% { 
    box-shadow: 0 0 0 15px rgba(40, 167, 69, 0);
  }
  100% { 
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

.mobile-wallet-btn:focus {
  animation: mobile-pulse 2s infinite;
}

/* FEEDBACK VISUAL MOBILE */
.mobile-wallet-btn:disabled {
  opacity: 0.7;
  animation: mobile-loading 1s infinite;
}

@keyframes mobile-loading {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* DARK MODE MOBILE */
@media (prefers-color-scheme: dark) {
  .mobile-qr-section {
    background: rgba(255, 255, 255, 0.03);
  }
  
  .qr-container-mobile {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
  }
}

/* LANDSCAPE MODE MOBILE */
@media (max-width: 768px) and (orientation: landscape) {
  .mobile-qr-container {
    padding: 15px;
  }
  
  .mobile-wallet-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .mobile-wallet-btn {
    flex: 1;
    min-width: 200px;
    padding: 10px;
  }
}


