/* ============================================
   QUEST4COUPLE - MAIN STYLES
   Estilos globais e layout base
   ============================================ */

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

body { 
  font-family: 'Arial', sans-serif; 
  margin: 8px; 
  background: 
    radial-gradient(circle at 15% 25%, rgba(214, 51, 132, 0.35) 0%, transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(111, 66, 193, 0.30) 0%, transparent 35%),
    radial-gradient(circle at 50% 10%, rgba(38, 198, 218, 0.20) 0%, transparent 35%),
    radial-gradient(circle at 20% 70%, rgba(232, 62, 140, 0.15) 0%, transparent 30%),
    repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(255, 255, 255, 0.08) 15px, rgba(255, 255, 255, 0.08) 17px),
    repeating-linear-gradient(-45deg, transparent, transparent 30px, rgba(214, 51, 132, 0.03) 30px, rgba(214, 51, 132, 0.03) 32px),
    linear-gradient(135deg, #e8ecf0 0%, #d1d9e0 100%);
  font-size: 16px; 
  min-height: 100vh;
}

/* === HEADER === */
.header { 
  text-align: center; 
  margin-bottom: 20px;
  position: relative;
}

.header::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 250px;
  background: 
    radial-gradient(circle at 50% 50%, rgba(214, 51, 132, 0.4) 2px, transparent 2px),
    radial-gradient(circle at 25% 25%, rgba(111, 66, 193, 0.3) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(38, 198, 218, 0.25) 1.5px, transparent 1.5px);
  background-size: 40px 40px, 20px 20px, 60px 60px;
  opacity: 0.7;
  z-index: -1;
  pointer-events: none;
}

/* === FREE BADGE === */
.free-badge {
  text-align: center;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  margin: 20px auto;
  max-width: 500px;
  font-weight: 700;
  font-size: 1.1em;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

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

/* === FREE BADGE SMALL === */
.free-badge-small {
  text-align: center;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  margin: 10px auto;
  max-width: 200px;
  font-weight: 600;
  font-size: 0.85em;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
  opacity: 0.9;
}

.logo-section { 
  margin-bottom: 25px; 
}

.logo { 
  width: 180px; 
  height: auto;
  max-height: 180px;
  margin-bottom: 15px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-section h1 {
  margin: 10px 0 5px 0; 
  font-size: 28px; 
  color: #d63384;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tagline { 
  margin: 10px 0; 
  font-size: 1.4em;
  background: linear-gradient(135deg, #d63384, #6f42c1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  font-style: normal;
}

/* === USER SECTION === */
.user-section { 
  margin: 20px 0; 
}

.user-section label { 
  font-weight: bold; 
  font-size: 16px; 
  color: #495057; 
}

.user-section input { 
  font-size: 16px; 
  padding: 8px;
  margin: 0 10px;
  border-radius: 3px;
  border: 1px solid #ccc;
}

/* === USER SECTION TOP RIGHT (SIMPLES E LIMPO) === */
.user-section-top {
  position: fixed;
  top: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  padding: 10px 18px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.user-section-top .user-info {
  color: #d63384;
  font-weight: 600;
  font-size: 0.9em;
}

.user-section-top .btn {
  padding: 8px 16px;
  font-size: 0.85em;
}

.user-section-top .btn-dashboard {
  background: linear-gradient(135deg, #667eea, #764ba2);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.user-section-top .btn-logout {
  background: linear-gradient(135deg, #dc3545, #c82333);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25);
}

/* === SYNC STATUS INDICATOR === */
.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  transition: all 0.3s ease;
  animation: fadeIn 0.3s ease;
}

.sync-status.saved {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.sync-status.saving {
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
  border: 1px solid rgba(0, 123, 255, 0.2);
}

.sync-status.offline {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.2);
}

.sync-status.error {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.sync-icon {
  font-size: 1.1em;
  animation: pulse 2s infinite;
}

.sync-status.saving .sync-icon {
  animation: spin 1s linear infinite;
}

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

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

/* === BUTTONS === */
.btn { 
  background: linear-gradient(135deg, #d63384, #e83e8c); 
  color: white; 
  border: none; 
  padding: 12px 20px; 
  border-radius: 10px; 
  cursor: pointer; 
  font-size: 14px; 
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(214, 51, 132, 0.3); 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover { 
  background: linear-gradient(135deg, #e83e8c, #ff6b9d); 
  transform: translateY(-2px) scale(1.02); 
  box-shadow: 0 6px 20px rgba(214, 51, 132, 0.5); 
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-load {
  background: linear-gradient(135deg, #17a2b8, #20c997);
  box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.btn-load:hover {
  background: linear-gradient(135deg, #20c997, #28d5ae);
  box-shadow: 0 6px 20px rgba(23, 162, 184, 0.5);
}

.btn-import {
  background: linear-gradient(135deg, #28a745, #20c997);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-import:hover {
  background: linear-gradient(135deg, #20c997, #17e5a0);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

.btn-secondary { 
  background: linear-gradient(135deg, #6f42c1, #8e5cc7);
  box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3);
}

.btn-secondary::before {
  background: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover { 
  background: linear-gradient(135deg, #8e5cc7, #9d5bd2); 
  box-shadow: 0 6px 20px rgba(111, 66, 193, 0.5);
}

.btn-credits {
  background: linear-gradient(135deg, #28a745, #20c997);
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.btn-credits:hover {
  background: linear-gradient(135deg, #218838, #1fa080);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

/* === CONTROLS BOTTOM - BOTÕES EM LINHA === */
.controls-bottom {
  display: flex;
  flex-wrap: nowrap; /* Força uma única linha */
  gap: 6px;
  justify-content: center;
  margin: 20px auto;
  max-width: 1200px;
  overflow-x: auto; /* Scroll horizontal se necessário */
  padding: 10px;
  background: transparent; /* Fundo transparente */
  border-radius: 0;
  box-shadow: none;
}

.controls-bottom .btn {
  padding: 8px 12px;
  font-size: 0.8em; /* Texto menor */
  white-space: nowrap;
  flex: 0 0 auto; /* Não cresce nem encolhe */
  min-width: 0;
  border-radius: 8px;
}

/* Tablet: reduzir ainda mais */
@media (max-width: 1024px) {
  .controls-bottom .btn {
    padding: 7px 10px;
    font-size: 0.75em;
  }
}

/* Mobile: empilhar botões em 2 colunas */
@media (max-width: 768px) {
  .controls-bottom {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .controls-bottom .btn {
    flex: 1 1 calc(50% - 8px); /* 2 colunas */
    min-width: 140px;
    font-size: 0.85em;
  }
}

/* === CONTROLS === */
.controls { 
  display: flex; 
  gap: 8px; 
  justify-content: center; 
  margin-bottom: 25px; 
  flex-wrap: wrap; 
}

/* Bloco .controls-bottom já definido acima - removido duplicação */

/* === AGE VERIFICATION MODAL === */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

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

.age-modal {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  text-align: center;
  animation: slideUp 0.4s ease;
}

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

.age-modal-icon {
  font-size: 4em;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

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

.age-modal h2 {
  color: #d63384;
  font-size: 2em;
  margin-bottom: 15px;
}

.age-modal p {
  color: #495057;
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
}

.age-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.age-btn {
  flex: 1;
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.age-btn-yes {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.age-btn-yes:hover {
  background: linear-gradient(135deg, #218838, #1fa080);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.3);
}

.age-btn-no {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
}

.age-btn-no:hover {
  background: linear-gradient(135deg, #c82333, #bd2130);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 53, 69, 0.3);
}

.age-warning {
  margin-top: 20px;
  padding: 15px;
  background: rgba(220, 53, 69, 0.1);
  border-left: 4px solid #dc3545;
  border-radius: 8px;
  font-size: 0.9em;
  color: #721c24;
}

/* === COUPLE CONFIGURATION === */
.couple-config-section {
  margin: 30px auto;
  max-width: 900px;
  padding: 0 15px;
}

.couple-config-header {
  text-align: center;
  margin-bottom: 30px;
}

.couple-config-header h2 {
  color: #d63384;
  font-size: 2em;
  margin-bottom: 10px;
}

.couple-config-header p {
  color: #6c757d;
  font-size: 1.1em;
}

.couple-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.couple-type-card {
  background: white;
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 3px solid transparent;
}

.couple-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.couple-type-card.selected {
  border-color: #d63384;
  background: linear-gradient(135deg, rgba(214, 51, 132, 0.05), rgba(111, 66, 193, 0.05));
  box-shadow: 0 8px 25px rgba(214, 51, 132, 0.3);
}

.couple-type-icon {
  font-size: 3.5em;
  margin-bottom: 15px;
  display: block;
}

.couple-type-card h3 {
  color: #495057;
  font-size: 1.2em;
  margin-bottom: 8px;
}

.couple-type-card p {
  color: #6c757d;
  font-size: 0.9em;
  line-height: 1.4;
}

.couple-type-card.selected h3 {
  color: #d63384;
  font-weight: bold;
}

.continue-btn {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 15px 30px;
  background: linear-gradient(135deg, #d63384, #e83e8c);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(214, 51, 132, 0.3);
}

.continue-btn:hover {
  background: linear-gradient(135deg, #b02a5b, #d63384);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(214, 51, 132, 0.4);
}

.continue-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.skip-config {
  text-align: center;
  margin-top: 15px;
}

.skip-config a {
  color: #6c757d;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.2s;
}

.skip-config a:hover {
  color: #d63384;
  text-decoration: underline;
}

/* === COMPARE SECTION === */
#compareSection {
  margin: 15px 0;
  padding: 15px;
  background: #e9ecef;
  border-radius: 8px;
}

#compareSection h3 {
  margin-bottom: 15px;
}

#compareSection label {
  display: block;
  margin: 10px 0 5px 0;
  font-weight: 600;
}

#compareSection input[type="file"],
#compareSection input[type="password"] {
  margin-left: 10px;
  padding: 5px;
  border-radius: 3px;
  border: 1px solid #ccc;
}

/* === COMPATIBILITY REPORT === */
.compatibility-category {
  margin: 30px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  backdrop-filter: blur(5px);
}

.compatibility-category h3 {
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(214, 51, 132, 0.3);
  font-size: 1.5em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.compatibility-section {
  margin: 15px 0;
  padding: 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 2px solid #ff9800;
}

.maybe {
  background-color: #e8f4f8;
  border-left: 5px solid #6c757d;
}

.special {
  background-color: #f8d7da;
  border-left: 5px solid #dc3545;
}

/* === PACK NAVIGATION SIDEBAR === */
.pack-nav-sidebar {
  position: fixed;
  right: 0;
  top: 30%;
  transform: translateY(-30%);
  z-index: 100;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.pack-nav-sidebar * {
  pointer-events: auto;
}

.pack-nav-sidebar.hidden .pack-nav-content {
  transform: translateX(100%);
  pointer-events: none;
}

.pack-nav-sidebar.hidden .pack-nav-toggle {
  right: 10px;
  left: auto;
  top: 120px;
  transform: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(214, 51, 132, 0.4);
  pointer-events: auto;
  flex-direction: row;
  padding: 0;
}

.pack-nav-sidebar.hidden .pack-nav-toggle:hover {
  right: 8px;
  left: auto;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(214, 51, 132, 0.5);
}

.pack-nav-toggle {
  position: absolute;
  left: -45px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #d63384, #6f42c1);
  border: none;
  color: white;
  width: 40px;
  height: 50px;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  font-size: 1.5em;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pack-nav-toggle:hover {
  background: linear-gradient(135deg, #c1296d, #5a32a3);
  left: -48px;
}

.pack-nav-toggle .toggle-icon {
  transition: transform 0.3s ease;
  font-size: 1em;
  line-height: 1;
}

.pack-nav-sidebar.hidden .pack-nav-toggle .toggle-icon {
  transform: rotate(0deg);
  font-size: 1.8em;
}

.pack-nav-content {
  background: linear-gradient(180deg, rgba(214, 51, 132, 0.95) 0%, rgba(111, 66, 193, 0.95) 100%);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 15px 0 0 15px;
  box-shadow: -5px 0 20px rgba(0,0,0,0.3);
  min-width: 220px;
  transition: transform 0.3s ease;
}

.pack-nav-content h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.1em;
  text-align: center;
  border-bottom: 2px solid rgba(255,255,255,0.2);
  padding-bottom: 10px;
}

.pack-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pack-nav-item:hover {
  background: rgba(255,255,255,0.25);
  transform: translateX(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.pack-nav-item.active {
  background: white;
  color: #d63384;
  border-color: white;
  box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.pack-nav-item .nav-emoji {
  font-size: 1.5em;
}

.pack-nav-back {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 10px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pack-nav-back:hover {
  background: rgba(255,255,255,0.3);
  border-color: white;
}

/* === PACK FOOTER === */
.pack-footer {
  padding: 30px;
  text-align: center;
  background: rgba(0,0,0,0.1);
  border-top: 2px solid rgba(255,255,255,0.2);
  margin-top: 20px;
}

.btn-save-pack {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 1.2em;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  transition: all 0.3s ease;
}

.btn-save-pack:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.save-hint {
  color: rgba(255,255,255,0.8);
  font-size: 0.9em;
  margin-top: 15px;
  font-style: italic;
}

/* === INVERT MATCHING STYLES === */
.match-question.inverted {
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid #ff6b6b;
  padding: 15px;
  margin: 10px 0;
  border-radius: 8px;
}

.invert-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 15px;
  align-items: center;
  margin-bottom: 10px;
}

.invert-you,
.invert-partner {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 8px;
}

.invert-label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.75em;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.invert-label.giver {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: white;
}

.invert-label.receiver {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
}

.invert-arrow {
  font-size: 2em;
  text-align: center;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.invert-you .question-text,
.invert-partner .question-text {
  font-size: 0.9em;
  margin: 8px 0;
  line-height: 1.4;
}

.answer-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  margin-top: 8px;
}

.answer-badge.porfavor {
  background: #4a90e2;
  color: white;
}

.answer-badge.yup {
  background: #28a745;
  color: white;
}

.answer-badge.meh {
  background: #dc3545;
  color: white;
}

.answer-badge.talvez {
  background: #d4a574;
  color: white;
  border: 2px solid #000;
}

.invert-description {
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* === USER SECTION TOP RIGHT === */
.user-section-top {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.user-section-top .user-info {
  color: #667eea;
  font-weight: 600;
  font-size: 0.95em;
}

.user-section-top .btn {
  padding: 8px 16px;
  font-size: 0.9em;
}

.user-section-top .btn-dashboard {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.user-section-top .btn-logout {
  background: linear-gradient(135deg, #dc3545, #c82333);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* === FREE BADGE SMALL === */
.free-badge-small {
  text-align: center;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  margin: 10px auto;
  max-width: 200px;
  font-weight: 600;
  font-size: 0.85em;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
  opacity: 0.9;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 768px) {
  .user-section-top {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 15px;
    flex-direction: column;
    padding: 15px;
  }
  
  .user-section-top .btn {
    width: 100%;
  }
}

.invert-description small {
  font-style: italic;
  opacity: 0.9;
}

/* Responsive para invert matching */
@media (max-width: 768px) {
  .invert-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .invert-arrow {
    transform: rotate(90deg);
    font-size: 1.5em;
  }
  
  @keyframes bounce {
    0%, 100% { transform: rotate(90deg) translateX(0); }
    50% { transform: rotate(90deg) translateX(5px); }
  }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  body { margin: 5px; font-size: 16px; }
  .logo { width: 80px; height: 80px; }
  .logo-section h1 { font-size: 22px; }
  .tagline { font-size: 14px; }
  .controls { gap: 5px; }
  .btn { padding: 10px 12px; font-size: 13px; }
    /* User section mobile */
  .user-section-top {
    top: 10px;
    right: 10px;
    left: 10px;
    padding: 8px 12px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  
  .user-section-top .user-info {
    font-size: 0.8em;
    width: 100%;
    text-align: center;
  }
  
  .user-section-top .btn {
    padding: 6px 12px;
    font-size: 0.75em;
    flex: 1;
  }
  
  /* Sidebar mobile */
  .pack-nav-sidebar {
    top: auto;
    bottom: 20px;
    transform: none;
  }
  
  .pack-nav-sidebar.hidden .pack-nav-toggle {
    right: 15px;
    top: auto;
    bottom: 20px;
    width: 50px;
    height: 50px;
    transform: none;
  }
  
  .pack-nav-sidebar.hidden .pack-nav-toggle:hover {
    transform: scale(1.05);
    bottom: 22px;
  }
  
  .pack-nav-content {
    min-width: 180px;
    padding: 15px;
  }
  
  .pack-nav-item {
    padding: 10px 12px;
    font-size: 0.9em;
  }

  .user-section-top {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 15px;
    flex-direction: column;
    padding: 15px;
  }
  
  .user-section-top .btn {
    width: 100%;
  }
  
  .controls-bottom {
    flex-direction: column;
    padding: 15px;
  }
  
  .controls-bottom .btn {
    width: 100%;
    min-width: auto;
  }
}

@media print {
  .controls { display: none; }
  .pack-nav-sidebar { display: none; }
}
