/* ComparePesca - Components Stylesheet */

/* ==================== MODAL OVERLAY SYSTEM ==================== */
/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Badge styles for modals (override absolute positioning from main.css) */
.modal-content .badge {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 0.5rem;
  width: auto;
  height: auto;
}

.modal-content .badge.success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
}

.modal-content .badge.warning {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.modal-content .badge.danger {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  color: white;
}

.modal-content .badge.info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.modal-content .badge:not(.success):not(.warning):not(.danger):not(.info) {
  background: var(--bg-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.modal-content {
  background: var(--surface-color);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--spacing-xl);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 10;
}

.modal-close:hover {
  background: var(--accent-color);
  color: white;
  transform: rotate(90deg);
}

/* Custom scrollbar for modal content */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* ==================== ITEM CARDS ==================== */
.item-card {
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.item-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition-base);
}

.item-card:hover img {
  transform: scale(1.05);
}

.item-content {
  padding: var(--spacing-md);
}

.item-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.item-brand {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.item-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.item-actions-compact {
  display: flex;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* ==================== CAPTURE FORM ==================== */
.capture-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.capture-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.capture-form .form-group.full-width {
  grid-column: 1 / -1;
}

.capture-form label {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.capture-form label i {
  color: var(--primary-color);
  width: 20px;
}

.capture-form input,
.capture-form select,
.capture-form textarea {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition-fast);
  background: var(--bg-color);
  color: var(--text-primary);
}

.capture-form input:focus,
.capture-form select:focus,
.capture-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--surface-color);
}

.capture-form textarea {
  resize: vertical;
  min-height: 80px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: var(--transition-fast);
  margin: 0;
}

.checkbox-label:hover {
  border-color: var(--primary-color);
  background: rgba(0, 119, 190, 0.05);
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

.checkbox-label span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Capture Cards */
.captures-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.capture-card {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition-fast);
}

.capture-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.capture-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.capture-header h3 {
  margin: 0;
  color: var(--primary-color);
}

.capture-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.capture-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.capture-stat i {
  color: var(--text-secondary);
  width: 16px;
}

.capture-notes {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

.btn-delete-capture {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.btn-delete-capture:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* ==================== INVENTORY SYSTEM ==================== */
.inventory-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface-color);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  transition: var(--transition-fast);
}

.inventory-item:hover {
  box-shadow: var(--shadow-sm);
}

.inventory-item-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.inventory-item-info {
  flex: 1;
  min-width: 0;
}

.inventory-item-info h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  color: var(--text-primary);
}

.inventory-item-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.inventory-brand {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: var(--bg-color);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.inventory-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-color);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
}

.btn-quantity {
  width: 28px;
  height: 28px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.btn-quantity:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.quantity-value {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  color: var(--text-primary);
}

.inventory-item-price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1rem;
  margin: 0 1rem;
}

.btn-remove-inventory {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.btn-remove-inventory:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

#inventory-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--surface-color);
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.stat-card i {
  font-size: 2rem;
  color: var(--primary-color);
}

.stat-card h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.stat-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==================== NOTIFICATIONS SYSTEM ==================== */
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  animation: pulse 2s infinite;
}

.notifications-dropdown {
  position: fixed;
  width: 400px;
  max-width: calc(100vw - 40px);
  max-height: 600px;
  background: var(--surface-color);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 10000;
  display: none;
}

.notifications-header {
  padding: 1rem 1.5rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-color);
}

.notifications-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
}

#mobile-menu-btn {
  display: none;
}

.btn-mark-all-read {
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-mark-all-read:hover {
  background: rgba(0, 119, 190, 0.1);
}

.notifications-list {
  max-height: 450px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.notification-item:hover {
  background: rgba(0, 119, 190, 0.05);
}

.notification-item.unread {
  background: rgba(0, 119, 190, 0.02);
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.notification-icon.info {
  background: rgba(0, 119, 190, 0.1);
  color: var(--primary-color);
}

.notification-icon.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.notification-icon.warning {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.notification-icon.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-content h4 {
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.notification-content p {
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.notification-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.notification-dot {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.notifications-empty {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-secondary);
}

.notifications-empty i {
  font-size: 3rem;
  opacity: 0.3;
  margin-bottom: 1rem;
}

.notifications-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  background: var(--bg-color);
}

.btn-view-all,
.btn-clear-all {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-view-all:hover {
  background: rgba(0, 119, 190, 0.1);
  color: var(--primary-color);
}

.btn-clear-all:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* ==================== SEARCH DROPDOWN ==================== */
.search-results-dropdown {
  position: fixed;
  background: var(--surface-color);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  max-height: 500px;
  overflow-y: auto;
  z-index: 10000;
  display: none;
  border: 1px solid var(--border-color);
  margin: 0;
  padding: 0;
}

.search-results-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition-fast);
  border-bottom: 1px solid var(--border-color);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(0, 119, 190, 0.05);
}

.search-result-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-category {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.search-result-price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1rem;
  flex-shrink: 0;
}

.search-no-results {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.search-no-results i {
  font-size: 3rem;
  opacity: 0.3;
  margin-bottom: 16px;
}

.search-results-footer {
  padding: 12px 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-color);
  border-top: 1px solid var(--border-color);
}

/* Floating Compare Button */
.floating-compare-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 119, 190, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1rem;
  z-index: 1000;
  transition: all 0.3s ease;
  animation: slideInLeft 0.5s ease;
}

.floating-compare-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 119, 190, 0.5);
}

.floating-compare-btn.hidden {
  display: none;
}

.floating-compare-btn i {
  font-size: 1.3rem;
}

.floating-compare-btn .compare-count {
  background: rgba(255, 255, 255, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: bold;
  min-width: 28px;
  text-align: center;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==================== LOCATION CARDS ==================== */
.location-card {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.location-card:hover {
  background: rgba(0, 119, 190, 0.05);
}

.location-card img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.location-info h4 {
  margin-bottom: 0.25rem;
  color: var(--primary-color);
}

.location-meta {
  display: flex;
  gap: var(--spacing-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* ==================== COMPARISON SLOTS ==================== */
.selected-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.item-slot {
  background: var(--bg-color);
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  padding: var(--spacing-lg);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.item-slot:hover {
  border-color: var(--primary-color);
  background: rgba(0, 119, 190, 0.05);
}

.item-slot i {
  font-size: 2rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.item-slot img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.item-slot p {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.remove-item {
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

/* ==================== FILTERS ==================== */
.filters-sidebar {
  background: var(--surface-color);
  padding: var(--spacing-md);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.filter-group {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.range-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* ==================== TABS ==================== */
.category-tabs, .captures-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn, .filter-btn {
  padding: 0.75rem 1.5rem;
  background: var(--surface-color);
  border: 2px solid var(--border-color);
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-weight: 500;
}

.tab-btn:hover, .filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.tab-btn.active, .filter-btn.active {
  background: var(--gradient-primary);
  border-color: var(--primary-color);
  color: white;
}

/* ==================== LOADING STATES ==================== */
.loading {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--text-secondary);
}

.loading::after {
  content: '...';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* ==================== TOOLS ==================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.tool-card h3 {
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-content {
  margin-top: var(--spacing-md);
}

.result {
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-color);
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
}

/* Tools Category Navigation */
.tools-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.category-card {
  background: var(--surface-color);
  border-radius: 12px;
  padding: var(--spacing-xl);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.category-card:active {
  transform: translateY(-2px);
}

.category-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.1);
}

.category-card h3 {
  margin: var(--spacing-sm) 0;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.category-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.category-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-color);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Calculator Mode Sections */
.capacity-mode {
  margin-top: var(--spacing-md);
}

.capacity-mode .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

/* Bidirectional Converter Layout */
.converter-bidirectional {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto auto auto; /* 3 rows: labels, inputs, hints */
  gap: 0.5rem var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.converter-field {
  display: contents; /* Faz os filhos participarem do grid pai */
}

/* Organizar elementos no grid */
.converter-field:first-child label {
  grid-column: 1;
  grid-row: 1;
}

.converter-field:first-child input {
  grid-column: 1;
  grid-row: 2;
}

.converter-field:first-child .unit-hint {
  grid-column: 1;
  grid-row: 3;
}

.converter-field:last-child label {
  grid-column: 3;
  grid-row: 1;
}

.converter-field:last-child input {
  grid-column: 3;
  grid-row: 2;
}

.converter-field:last-child .unit-hint {
  grid-column: 3;
  grid-row: 3;
}

.converter-field label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.4;
}

.converter-field input {
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--surface-color);
  width: 100%;
  box-sizing: border-box;
}

.converter-field input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
  outline: none;
}

.converter-field input:not(:placeholder-shown) {
  border-color: var(--secondary-color);
  background: rgba(76, 175, 80, 0.05);
}

.converter-arrow {
  grid-column: 2;
  grid-row: 2; /* Mesma linha dos inputs */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.converter-arrow i {
  animation: pulse-arrow 2s infinite;
}

@keyframes pulse-arrow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.unit-hint {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-style: italic;
}

.converter-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-color);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  margin-top: var(--spacing-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.converter-info i {
  color: var(--primary-color);
}

/* ==================== CATÁLOGO HIERÁRQUICO (HIERARCHICAL CATALOG) ==================== */

/* Breadcrumb Navigation */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--spacing-md);
  background: var(--surface-color);
  border-radius: 8px;
  margin-bottom: var(--spacing-lg);
  font-size: 0.9rem;
  overflow-x: auto;
}

.breadcrumb-item {
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.breadcrumb-item:hover {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: var(--primary-color);
  font-weight: 600;
}

.breadcrumb-item:not(:last-child)::after {
  content: '›';
  margin-left: 0.5rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

/* Groups Grid (Level 1) */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.group-card {
  background: var(--surface-color);
  border-radius: 16px;
  padding: var(--spacing-lg);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: var(--shadow-md);
}

.group-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.group-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
}

.group-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.group-count {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.group-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Items View with Sidebar */
.items-view {
  animation: fadeIn 0.3s ease;
}

.items-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--spacing-lg);
  min-height: 500px;
}

/* Categories Sidebar */
.categories-sidebar {
  background: var(--surface-color);
  border-radius: 12px;
  padding: var(--spacing-md);
  box-shadow: var(--shadow-md);
  height: fit-content;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--border-color);
  margin-bottom: var(--spacing-md);
}

.sidebar-header h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.sidebar-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-color);
  color: var(--text-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sidebar-toggle:hover {
  background: var(--primary-color);
  color: white;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-category-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  background: var(--bg-color);
}

.sidebar-category-item:hover {
  background: linear-gradient(135deg, rgba(0, 119, 190, 0.1), rgba(0, 180, 216, 0.1));
  border-color: var(--primary-color);
  transform: translateX(4px);
}

.sidebar-category-item.active {
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.sidebar-category-item.active .category-item-icon {
  background: white;
  color: var(--primary-color);
}

.sidebar-category-item.active .category-item-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.category-item-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(0, 119, 190, 0.1), rgba(0, 180, 216, 0.1));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary-color);
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.category-item-info {
  flex: 1;
  min-width: 0;
}

.category-item-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-category-item.active .category-item-name {
  color: white;
}

.category-item-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--surface-color);
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
  display: inline-block;
}

/* Items Content Area */
.items-content {
  flex: 1;
  min-width: 0;
}

.items-filter-bar {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
  align-items: center;
  background: var(--surface-color);
  padding: var(--spacing-md);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.filter-search {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.filter-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.filter-search input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-color);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.filter-search input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 119, 190, 0.1);
}

.filter-select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-color);
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Price Range Filter */
.price-range-filter {
  min-width: 280px;
  padding: 0.5rem 0;
}

.price-range-filter label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.price-range-filter label i {
  color: var(--primary-color);
  margin-right: 0.25rem;
}

.price-range-values {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.price-range-inputs {
  position: relative;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
}

.price-range-inputs input[type="range"] {
  position: absolute;
  width: 100%;
  height: 8px;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.price-range-inputs input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  pointer-events: all;
  box-shadow: 0 2px 6px rgba(0, 119, 190, 0.4);
  transition: all 0.2s ease;
}

.price-range-inputs input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  pointer-events: all;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 119, 190, 0.4);
  transition: all 0.2s ease;
}

.price-range-inputs input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 3px 8px rgba(0, 119, 190, 0.6);
}

.price-range-inputs input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 3px 8px rgba(0, 119, 190, 0.6);
}

.price-range-inputs input[type="range"]::-webkit-slider-track {
  background: transparent;
}

.price-range-inputs input[type="range"]::-moz-range-track {
  background: transparent;
}

.items-grid-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--spacing-lg);
}

.item-card-catalog {
  background: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
  cursor: pointer;
}

.item-card-catalog:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.item-image-catalog {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.item-image-catalog img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-image-catalog i {
  font-size: 3rem;
  color: var(--text-secondary);
  opacity: 0.3;
}

.item-card-catalog .item-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gradient-primary);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Favorite Button */
.btn-favorite {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.btn-favorite i {
  font-size: 1.2rem;
  color: #666;
  transition: all 0.3s ease;
}

.btn-favorite:hover {
  transform: scale(1.1);
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-favorite:hover i {
  color: #ff6b6b;
}

.btn-favorite.favorited i {
  color: #ff6b6b;
}

.btn-favorite.favorited:hover {
  transform: scale(1.15) rotate(5deg);
}

.btn-favorite.favorited:hover i {
  color: #ff5252;
}

.item-content-catalog {
  padding: var(--spacing-md);
}

.item-content-catalog h4 {
  font-size: 1rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
  line-height: 1.3;
}

.item-brand {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.item-price-catalog {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.item-actions-catalog {
  display: flex;
  gap: var(--spacing-sm);
}

.btn-compare {
  flex: 1;
  padding: 0.6rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-compare:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.btn-compare.selected {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  animation: pulse 0.3s ease;
}

.btn-compare.selected:hover {
  background: linear-gradient(135deg, #27ae60, #229954);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Botão de comparação no modal */
.btn-in-comparison {
  background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
}

.btn-in-comparison:hover {
  background: linear-gradient(135deg, #27ae60, #229954) !important;
}

/* ==================== HEATMAP DE CAPTURAS ==================== */
.heatmap-container {
  background: var(--surface-color);
  border-radius: 12px;
  padding: var(--spacing-lg);
  margin: var(--spacing-md) 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.heatmap-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.stat-item {
  text-align: center;
  padding: var(--spacing-md);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 8px;
  color: white;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.9;
}

.heatmap-charts {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-lg);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.chart-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.chart-section.full-width {
  grid-column: 1 / -1; /* Ocupa todas as colunas da grid */
  margin-bottom: var(--spacing-lg);
}

.chart-section h4 {
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.hour-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 200px;
  gap: 2px;
  background: var(--background-color);
  padding: var(--spacing-sm);
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.hour-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.hour-fill {
  width: 100%;
  background: var(--secondary-color);
  border-radius: 4px 4px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  padding-top: 2px;
  transition: all 0.3s ease;
}

.hour-fill:hover {
  transform: scaleY(1.05);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
}

.hour-label {
  font-size: 0.65rem;
  margin-top: 4px;
  color: var(--text-secondary);
}

.species-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.species-item {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-sm);
  background: var(--background-color);
  border-radius: 6px;
  border-left: 3px solid var(--secondary-color);
}

.species-name {
  font-weight: 500;
}

.species-count {
  background: var(--primary-color);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.heatmap-empty {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--text-secondary);
}

.heatmap-empty i {
  margin-bottom: var(--spacing-md);
}

.heatmap-empty p {
  margin: var(--spacing-sm) 0;
  font-size: 1.1rem;
}

/* Responsivo */
@media (max-width: 768px) {
  .heatmap-charts {
    grid-template-columns: 1fr;
  }

  .heatmap-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hour-label {
    font-size: 0.55rem;
  }
}

/* ==================== FISHING TYPE SELECTOR (RADIO CARDS) ==================== */
.fishing-type-selector {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
  width: 100%;
  max-width: 100%;
}

.radio-card {
  position: relative;
  cursor: pointer;
  display: block;
  width: 100%;
  max-width: 100%;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: var(--surface-color);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
  min-height: 100px;
  width: 100%;
  box-sizing: border-box;
}

.radio-card-content i {
  font-size: 1.8rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.radio-card-content span {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  text-align: center;
  word-break: break-word;
}

.radio-card:hover .radio-card-content {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.radio-card:hover .radio-card-content i {
  color: var(--primary-color);
  transform: scale(1.1);
}

.radio-card input[type="radio"]:checked + .radio-card-content {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: var(--primary-color);
  box-shadow: 0 8px 24px rgba(28, 126, 214, 0.3);
}

.radio-card input[type="radio"]:checked + .radio-card-content i,
.radio-card input[type="radio"]:checked + .radio-card-content span {
  color: white;
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .radio-card-content {
    flex-direction: row;
    min-height: 60px;
    padding: var(--spacing-md);
    justify-content: flex-start;
    gap: var(--spacing-md);
  }

  .radio-card-content i {
    font-size: 1.5rem;
  }
}

/* ==================== ASSISTANT LAYOUT ==================== */
.assistant-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
  align-items: start;
}

.refinement-form {
  position: sticky;
  top: 90px;
  height: fit-content;
  padding: var(--spacing-lg);
}

#assistant-results {
  width: 100%;
  min-width: 0;
  overflow: visible;
}

#assistant-results > .card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

#assistant-results * {
  max-width: 100%;
  box-sizing: border-box;
}

#assistant-results .card {
  padding: var(--spacing-lg);
  overflow: visible;
}

#assistant-results h3,
#assistant-results h4,
#assistant-results p {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.refinement-form h3 {
  margin-top: 0;
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.3rem;
}

.refinement-form h3 i {
  color: var(--primary-color);
}

.refinement-form .required {
  color: #ef4444;
  font-weight: 700;
}

.refinement-form small {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.refinement-form small i {
  color: var(--primary-color);
  margin-right: 0.25rem;
}

#assistant-results > .card {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
}

.iqp-result h3,
.equipment-recommendations h3,
.checklist h3 {
  margin-top: 0;
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.3rem;
}

.iqp-result h3 i,
.equipment-recommendations h3 i,
.checklist h3 i {
  color: var(--primary-color);
}

/* IQP Score Display */
.iqp-score-large {
  text-align: center;
  padding: var(--spacing-xl);
}

.iqp-value {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--spacing-md);
}

.iqp-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
}

.iqp-description {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Equipment Grid (Old - for backward compatibility) */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.equipment-item {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--surface-color);
  border-radius: 12px;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.equipment-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.equipment-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.equipment-item h4 {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.equipment-item p {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 500;
  margin: 0;
}

/* Equipment Complete Grid (New - Detailed Cards) */
.equipment-complete-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.equipment-detailed-card {
  background: var(--surface-color);
  border-radius: 12px;
  border: 2px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.equipment-detailed-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.equipment-card-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.equipment-card-header i {
  font-size: 1.5rem;
}

.equipment-card-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.equipment-specs {
  padding: var(--spacing-md);
  width: 100%;
  box-sizing: border-box;
}

.equipment-specs .spec-row {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border-color);
  display: block;
  line-height: 1.8;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.equipment-specs .spec-row:last-of-type {
  border-bottom: none;
}

.equipment-specs .spec-row strong {
  color: var(--text-secondary);
  font-weight: 600;
  display: inline-block;
  min-width: 120px;
  margin-right: var(--spacing-sm);
}

.spec-detail {
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm);
  background: rgba(58, 134, 255, 0.05);
  border-left: 3px solid var(--primary-color);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .equipment-complete-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .equipment-complete-grid {
    grid-template-columns: 1fr;
  }

  .equipment-specs .spec-row {
    display: block;
  }

  .equipment-specs .spec-row strong {
    display: block;
    min-width: auto;
    margin-bottom: 0.25rem;
  }
}

/* Technical Parameters */
.technical-params {
  background: linear-gradient(135deg, rgba(28, 126, 214, 0.05), rgba(58, 134, 255, 0.05));
  border-radius: 12px;
  padding: var(--spacing-xl);
  border: 2px solid var(--border-color);
}

.technical-params h4 {
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.2rem;
}

.params-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.param-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  background: var(--surface-color);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.param-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.param-value {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1rem;
}

/* Checklist */
.checklist-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.checklist-section h4 {
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  font-size: 1.1rem;
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--border-color);
}

.checklist-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist-section li {
  padding: var(--spacing-sm) 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.95rem;
}

.checklist-section li i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

#checklist-mandatory li i {
  color: #10b981;
}

#checklist-optional li i {
  color: var(--text-secondary);
}

@media (max-width: 1024px) {
  .assistant-layout {
    grid-template-columns: 1fr;
  }

  .refinement-form {
    position: relative;
    top: 0;
  }

  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .params-grid {
    grid-template-columns: 1fr;
  }

  .checklist-sections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .equipment-grid {
    grid-template-columns: 1fr;
  }

  .iqp-value {
    font-size: 4rem;
  }
}

/* ==================== LOCATION CARDS (EXPLORAR PAGE) ==================== */
.location-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--surface-color);
  border-radius: 12px;
  border: 2px solid var(--border-color);
  margin-bottom: var(--spacing-md);
  cursor: pointer;
  transition: all 0.3s ease;
}

.location-card:hover {
  border-color: var(--primary-color);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.location-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.location-info {
  flex: 1;
}

.location-info h4 {
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.location-type {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.location-price {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0.25rem 0 0 0;
}

.location-distance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  color: #16a34a;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.25rem 0 0 0;
}

.location-distance-badge i {
  font-size: 0.75rem;
}

.location-card > .fa-chevron-right {
  color: var(--text-secondary);
  font-size: 1.2rem;
}

/* ==================== ITEM MODAL (PRODUCT DETAILS) ==================== */
.item-modal {
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0 !important;
}

.item-modal-header {
  display: block;
  gap: var(--spacing-xl);
  padding: var(--spacing-xl);
  background: linear-gradient(135deg, rgba(28, 126, 214, 0.05), rgba(58, 134, 255, 0.05));
  border-bottom: 2px solid var(--border-color);
}

.item-modal-image {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.item-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-modal-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.item-modal-info h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.8rem;
  line-height: 1.3;
}

.item-brand-model {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

.item-category-badge {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.item-price-section {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: rgba(28, 126, 214, 0.08);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.item-price-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.item-price-value {
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 700;
}

.item-modal-info .item-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: auto;
}

.item-modal-info .item-actions .btn {
  justify-content: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-modal-body {
  padding: var(--spacing-xl);
}

.item-modal-body > .card {
  margin-bottom: var(--spacing-lg);
}

.specifications-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.spec-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-color);
  border-radius: 6px;
  transition: background 0.2s ease;
}

.spec-row:hover {
  background: rgba(28, 126, 214, 0.05);
}

.spec-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.spec-value {
  color: var(--text-primary);
  word-break: break-word;
}

.purchase-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.purchase-links .btn {
  justify-content: center;
}

.item-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-md);
  padding: var(--spacing-lg) var(--spacing-xl);
  border-top: 2px solid var(--border-color);
}

@media (max-width: 968px) {
  .item-modal-header {
    grid-template-columns: 1fr;
  }

  .item-modal-image {
    height: 250px;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: var(--spacing-xs);
  }

  .item-modal-info .item-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .item-modal-info .item-actions .btn {
    flex: 1 1 calc(50% - var(--spacing-xs));
    min-width: 150px;
  }
}

@media (max-width: 768px) {
  .item-modal {
    max-width: 100%;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .item-modal-header,
  .item-modal-body,
  .item-modal-footer {
    padding: var(--spacing-md);
  }

  .item-price-value {
    font-size: 1rem;
  }

  .purchase-links {
    grid-template-columns: 1fr;
  }

  .item-modal-footer {
    flex-direction: column;
  }

  .item-modal-footer button {
    width: 100%;
  }

  .item-modal-info .item-actions {
    flex-direction: list;
  }

  .item-modal-info .item-actions .btn {
    width: 100%;
  }
}

/* ==================== LOCATION MODAL ==================== */
.location-modal {
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
}

.location-modal-header {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-lg);
  background: linear-gradient(135deg, rgba(28, 126, 214, 0.1), rgba(58, 134, 255, 0.1));
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.location-header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
}

.location-modal-header h2 {
  margin: 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  font-size: 1.8rem;
  font-weight: 700;
}

.location-modal-header h2 i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.location-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
  padding: 0.25rem 0.75rem;
  background: rgba(58, 134, 255, 0.15);
  border-radius: 12px;
  font-weight: 500;
}

.location-distance {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--spacing-sm);
  padding: 0.5rem 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 20px;
  color: #16a34a;
  font-weight: 600;
  font-size: 0.95rem;
}

.location-distance i {
  color: #16a34a;
}

.location-modal-body {
  padding: var(--spacing-lg);
}

.location-modal-body > .card {
  margin-bottom: var(--spacing-lg);
}

.location-info-section h3,
.location-heatmap-section h3,
.location-regulation-section h3 {
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: var(--spacing-md);
  background: var(--background-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.info-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(28, 126, 214, 0.1);
  transform: translateY(-2px);
}

.info-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-label i {
  color: var(--primary-color);
  font-size: 1rem;
}

.info-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.location-description {
  padding: var(--spacing-md);
  background: linear-gradient(135deg, rgba(28, 126, 214, 0.05), rgba(58, 134, 255, 0.05));
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
  color: var(--text-primary);
  line-height: 1.8;
  margin: var(--spacing-md) 0 0 0;
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.location-description i {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.location-description p {
  margin: 0;
  flex: 1;
}

/* Espécies Disponíveis Section */
.location-species-section h3 {
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.2rem;
}

.species-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.species-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(28, 126, 214, 0.1), rgba(58, 134, 255, 0.15));
  border: 1px solid rgba(28, 126, 214, 0.3);
  border-radius: 20px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.species-tag:hover {
  background: linear-gradient(135deg, rgba(28, 126, 214, 0.2), rgba(58, 134, 255, 0.25));
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(28, 126, 214, 0.2);
}

/* Facilities List */
.facilities-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-sm);
}

.facilities-list li {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--background-color);
  border-radius: 8px;
  color: var(--text-primary);
}

.facilities-list li i {
  color: #10b981;
  font-size: 1rem;
}

/* Rules Grid */
.rules-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.rule-item {
  padding: var(--spacing-md);
  background: var(--background-color);
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
}

.rule-item strong {
  display: block;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rule-item span {
  color: var(--text-primary);
  line-height: 1.6;
}

/* Location Address */
.location-address {
  padding: var(--spacing-md);
  background: var(--background-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Specifications Grid */
.specifications-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--background-color);
  border-radius: 6px;
}

.spec-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.spec-value {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 1rem;
  text-align: right;
}

/* Heatmap Section */
.section-header-with-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.heatmap-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 var(--spacing-md) 0;
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(28, 126, 214, 0.05);
  border-left: 3px solid var(--primary-color);
  border-radius: 4px;
}

.heatmap-description i {
  color: var(--primary-color);
  margin-right: var(--spacing-xs);
}

.heatmap-filters {
  padding: var(--spacing-md);
  background: rgba(58, 134, 255, 0.05);
  border-radius: 8px;
  margin-bottom: var(--spacing-lg);
}

.filter-hint {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.filter-hint i {
  color: var(--primary-color);
}

/* Regulation Section */
.regulation-alert {
  padding: var(--spacing-md);
  border-radius: 8px;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.regulation-alert i {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.regulation-alert strong {
  display: block;
  margin-bottom: 0.25rem;
}

.regulation-alert p {
  margin: 0;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid #ef4444;
  color: #dc2626;
}

.alert-danger i {
  color: #ef4444;
}

.alert-info {
  background: rgba(58, 134, 255, 0.1);
  border: 2px solid var(--primary-color);
  color: var(--text-primary);
}

.alert-info i {
  color: var(--primary-color);
}

.regulation-table {
  margin-top: var(--spacing-lg);
}

.regulation-table h4 {
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.regulation-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-color);
  border-radius: 8px;
  overflow: hidden;
}

.regulation-table thead {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.regulation-table th,
.regulation-table td {
  padding: var(--spacing-md);
  text-align: left;
}

.regulation-table tbody tr {
  border-bottom: 1px solid var(--border-color);
}

.regulation-table tbody tr:last-child {
  border-bottom: none;
}

.regulation-table tbody tr:hover {
  background: var(--background-color);
}

.regulation-internal {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--background-color);
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
}

.regulation-internal h4 {
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.regulation-internal p {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Modal Footer */
.location-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  border-top: 2px solid var(--border-color);
  background: var(--surface-color);
}

@media (max-width: 768px) {
  .location-modal {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .section-header-with-filter {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }

  .location-modal-footer {
    flex-direction: column;
  }

  .location-modal-footer button {
    width: 100%;
  }
}

.btn-view-details {
  padding: 0.6rem 1rem;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-view-details:hover {
  background: var(--primary-color);
  color: white;
}

/* ==================== WISHLIST (LISTA DE DESEJOS) ==================== */
.wishlist-grid {
  width: 100%;
  min-height: 300px;
}

.wishlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--border-color);
}

.wishlist-header h3 {
  margin: 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.5rem;
}

.wishlist-header h3 i {
  color: #ef4444;
}

.wishlist-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  width: 100%;
}

.wishlist-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
}

.wishlist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.wishlist-remove-btn {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 10;
  transition: all 0.3s ease;
  opacity: 0;
}

.wishlist-card:hover .wishlist-remove-btn {
  opacity: 1;
}

.wishlist-remove-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.wishlist-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid var(--border-color);
}

.wishlist-card-content {
  padding: var(--spacing-md);
}

.wishlist-category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.wishlist-card h4 {
  margin: var(--spacing-sm) 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.3;
  min-height: 2.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wishlist-card .item-brand {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 var(--spacing-sm) 0;
}

.wishlist-card .item-price {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 700;
  margin: var(--spacing-md) 0;
}

.wishlist-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.wishlist-card-actions .btn {
  width: 100%;
  justify-content: center;
}

/* Empty state for wishlist */
.empty-state {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  background: var(--surface-color);
  border-radius: 12px;
  border: 2px dashed var(--border-color);
  width: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wishlist-grid .empty-state {
  grid-column: 1 / -1;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.3;
}

.empty-state h3 {
  margin: 0 0 var(--spacing-sm) 0;
  color: var(--text-primary);
  font-size: 1.5rem;
}

.empty-state p {
  margin: 0 0 var(--spacing-lg) 0;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.6;
}

.empty-state .btn {
  margin-top: var(--spacing-md);
}

@media (max-width: 768px) {
  .wishlist-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }

  .wishlist-header button {
    width: 100%;
  }

  .wishlist-items {
    grid-template-columns: 1fr;
  }

  .wishlist-remove-btn {
    opacity: 1;
  }
}

/* ==================== MODAL DE DETALHES DE ITEM ==================== */

.item-details-modal {
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
  padding: var(--spacing-xl);
}

.item-details-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-xl);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.item-details-image {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.item-image-large {
  width: 100%;
  max-width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  box-sizing: border-box;
}

.item-image-large i {
  font-size: 5rem;
  color: var(--text-secondary);
  opacity: 0.3;
}

.item-badge-large {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
}

.item-details-info {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-right: var(--spacing-md);
  overflow-x: hidden;
}

.item-details-info h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.item-brand-large {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  font-weight: 500;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.item-price-large {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-lg);
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}

.item-specs {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-lg);
  background: var(--surface-color);
  border-radius: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.item-specs h3 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.spec-item strong {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-item span {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.item-actions-large {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.item-actions-large .btn {
  flex: 1;
  min-width: 0;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

/* Responsividade para modal de detalhes */
@media (max-width: 768px) {
  .item-details-modal {
    max-width: 95%;
    padding: 1rem;
  }

  .item-details-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .item-image-large {
    height: 250px;
  }

  .item-details-info h2 {
    font-size: 1.5rem;
  }

  .item-price-large {
    font-size: 2rem;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .item-actions-large {
    flex-direction: column;
  }

  .item-actions-large .btn {
    width: 100%;
  }
}

/* ==================== TOAST NOTIFICATIONS ==================== */

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10000;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
  min-width: 300px;
  border-left: 4px solid var(--primary-color);
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast i {
  font-size: 1.5rem;
}

.toast-success {
  border-left-color: #10b981;
}

.toast-success i {
  color: #10b981;
}

.toast-error {
  border-left-color: #ef4444;
}

.toast-error i {
  color: #ef4444;
}

.toast-info {
  border-left-color: var(--primary-color);
}

.toast-info i {
  color: var(--primary-color);
}

.toast span {
  color: var(--text-primary);
  font-weight: 500;
}

/* ==================== COMPARAÇÃO MELHORADA ==================== */

.comparison-selector {
  margin-bottom: var(--spacing-xl);
}

.selected-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.item-slot {
  background: var(--surface-color);
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: var(--spacing-lg);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.item-slot:not(.filled):hover {
  border-color: var(--primary-color);
  border-style: solid;
  background: linear-gradient(135deg, rgba(0, 119, 190, 0.05), rgba(0, 180, 216, 0.05));
  transform: translateY(-4px);
}

.item-slot.filled {
  border-style: solid;
  border-color: var(--primary-color);
  background: var(--bg-color);
  cursor: default;
}

.item-slot:not(.filled) i {
  font-size: 3rem;
  color: var(--text-secondary);
  opacity: 0.3;
  margin-bottom: var(--spacing-sm);
}

.item-slot:not(.filled) p {
  color: var(--text-secondary);
  font-weight: 500;
}

.slot-image {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
}

.slot-image i {
  font-size: 2rem;
  color: white;
}

.slot-info h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.slot-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.slot-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #ef4444;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.slot-remove:hover {
  transform: scale(1.1);
  background: #dc2626;
}

.comparison-table-wrapper {
  background: var(--surface-color);
  border-radius: 12px;
  padding: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  overflow-x: auto;
}

.comparison-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--border-color);
}

.comparison-header h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
}

.comparison-table thead {
  background: var(--bg-color);
}

.comparison-table th {
  padding: var(--spacing-md);
  text-align: left;
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-table th.spec-column {
  width: 200px;
  position: sticky;
  left: 0;
  background: var(--bg-color);
  z-index: 2;
}

.comparison-table td {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.comparison-table td.spec-label {
  font-weight: 600;
  color: var(--text-secondary);
  position: sticky;
  left: 0;
  background: var(--surface-color);
  z-index: 1;
}

.comparison-table tbody tr:hover {
  background: var(--bg-color);
}

.item-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.item-header strong {
  font-size: 1rem;
  color: var(--text-primary);
}

.item-header span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.item-header .price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 0.25rem;
}

.comparison-table .na {
  color: var(--text-secondary);
  opacity: 0.5;
  font-style: italic;
}

/* ==================== BIBLIOTECA DE NÓS (KNOT LIBRARY) ==================== */
.knot-library-section {
  margin-bottom: var(--spacing-xl);
}

.knot-filters {
  display: flex;
  gap: 0.5rem;
  margin: var(--spacing-md) 0;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-filter {
  padding: 0.75rem 1.5rem;
  background: var(--surface-color);
  border: 2px solid var(--border-color);
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-weight: 500;
}

.btn-filter:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-filter.active {
  background: var(--gradient-primary);
  border-color: var(--primary-color);
  color: white;
}

.knots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.knot-card {
  background: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--shadow-md);
}

.knot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.knot-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.knot-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--spacing-md);
}

.knot-difficulty {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}

.knot-difficulty.easy {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.knot-difficulty.medium {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.knot-difficulty.hard {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.knot-content {
  padding: var(--spacing-md);
}

.knot-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.knot-category {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
}

.knot-stats {
  display: flex;
  justify-content: space-between;
  margin: var(--spacing-sm) 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.knot-resistance,
.knot-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.knot-popularity {
  margin-top: var(--spacing-sm);
  font-size: 0.9rem;
}

.knot-uses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: var(--spacing-sm);
}

.knot-uses .badge {
  position: relative;
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: var(--bg-color);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  width: auto;
  height: auto;
}

.knot-modal {
  /* Inherits from .modal-content */
  max-width: 900px;
}

.knot-modal h2 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 3rem; /* Space for close button */
}

.knot-meta,
.technique-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--spacing-lg);
  align-items: center;
}

.knot-video-section img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: var(--spacing-md);
}

.knot-instructions h3 {
  color: var(--secondary-color);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.knot-instructions ul,
.knot-instructions ol {
  margin-bottom: var(--spacing-md);
}

.knot-time-estimate {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--bg-color);
  border-radius: 8px;
  text-align: center;
  font-size: 1.1rem;
}

.knot-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.knot-detail-item {
  padding: var(--spacing-sm);
  background: var(--bg-color);
  border-radius: 8px;
}

.knot-detail-item strong {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.knot-steps,
.knot-tips {
  margin-top: var(--spacing-lg);
}

.knot-steps h3,
.knot-tips h3 {
  color: var(--secondary-color);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.knot-steps ol {
  list-style: none;
  counter-reset: step-counter;
}

.knot-steps li {
  counter-increment: step-counter;
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  background: var(--bg-color);
  border-radius: 8px;
  position: relative;
  padding-left: 3rem;
}

.knot-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: var(--spacing-sm);
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.knot-tips ul {
  list-style: none;
}

.knot-tips li {
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  background: rgba(255, 193, 7, 0.1);
  border-left: 4px solid #ffc107;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.knot-tips li::before {
  content: '💡';
  font-size: 1.2rem;
}

/* ==================== GUIAS DE TÉCNICAS (TECHNIQUE GUIDES) ==================== */
.techniques-section {
  margin-bottom: var(--spacing-xl);
}

.techniques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.technique-card {
  background: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--shadow-md);
}

.technique-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.technique-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.technique-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.technique-level {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}

.technique-level.easy {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.technique-level.medium {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.technique-level.hard {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.technique-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 0.4rem 0.8rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 20px;
  font-size: 0.8rem;
  color: white;
  font-weight: 600;
}

.technique-content {
  padding: var(--spacing-md);
}

.technique-category {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: var(--bg-color);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.technique-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.technique-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--spacing-md);
}

.technique-content .btn {
  width: 100%;
  margin-top: var(--spacing-sm);
}

.technique-modal {
  /* Inherits from .modal-content */
  max-width: 1000px;
}

.technique-modal h2 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  padding-right: 3rem; /* Space for close button */
}

.technique-modal h3 {
  color: var(--secondary-color);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

.technique-modal h4 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  font-size: 1.1rem;
}

.technique-modal ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.technique-modal ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.technique-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.technique-video {
  margin: var(--spacing-lg) 0;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.technique-video video {
  width: 100%;
  height: auto;
  max-height: 500px;
  display: block;
}

.technique-video-container {
  position: relative;
  width: 100%;
  height: 400px;
  background: #000;
  border-radius: 8px;
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.technique-when {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md);
  background: rgba(0, 119, 190, 0.1);
  border-left: 4px solid var(--primary-color);
  border-radius: 8px;
}

.technique-when h4 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.technique-critical {
  list-style: none;
}

.technique-critical li {
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  background: rgba(255, 87, 34, 0.1);
  border-left: 4px solid #ff5722;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.technique-steps,
.technique-errors {
  margin-top: var(--spacing-lg);
}

.technique-steps h3,
.technique-errors h3 {
  color: var(--secondary-color);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.technique-steps ol {
  list-style: none;
  counter-reset: step-counter;
}

.technique-steps li {
  counter-increment: step-counter;
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  background: var(--bg-color);
  border-radius: 8px;
  position: relative;
  padding-left: 3rem;
}

.technique-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: var(--spacing-sm);
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: var(--gradient-secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.technique-errors ul {
  list-style: none;
}

.technique-errors li {
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  background: rgba(244, 67, 54, 0.1);
  border-left: 4px solid #f44336;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.technique-errors li::before {
  content: '⚠️';
  font-size: 1.2rem;
}

/* ==================== SISTEMA DE CONQUISTAS (ACHIEVEMENTS) ==================== */
.user-level-section {
  margin-bottom: var(--spacing-xl);
}

.user-level-card {
  background: var(--gradient-hero);
  color: white;
  padding: var(--spacing-lg);
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.level-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: var(--spacing-sm);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.user-level-card h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  overflow: visible;
}

.user-level-card p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: var(--spacing-md);
}

.level-progress {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  height: 25px;
  margin-top: var(--spacing-md);
}

.level-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
  transition: width 0.5s ease;
  border-radius: 20px;
}

.level-progress-text {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  opacity: 0.9;
  line-height: 1.5;
}

.profile-tabs {
  display: flex;
  gap: 0.5rem;
  margin: var(--spacing-lg) 0;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0;
}

.profile-tabs .tab-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition-fast);
  font-weight: 600;
  color: var(--text-secondary);
}

.profile-tabs .tab-btn:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.profile-tabs .tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: transparent;
}

.tab-content {
  margin-top: var(--spacing-lg);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.stat-card {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--surface-color);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  display: flex; /* 1. Habilita o Flexbox */
  flex-direction: column; /* Define a direção principal como coluna (vertical) */
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.stat-card h3 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.badge-card {
  background: var(--surface-color);
  border-radius: 12px;
  padding: var(--spacing-md);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.badge-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.badge-card.locked {
  opacity: 0.5;
  filter: grayscale(100%);
}

.badge-card.unlocked {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 237, 78, 0.1) 100%);
  border: 2px solid #ffd700;
}

.badge-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: var(--spacing-sm);
}

.badge-card.unlocked .badge-icon {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.badge-card h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.badge-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.badge-criteria {
  margin-top: var(--spacing-sm);
  font-size: 0.8rem;
  padding: 0.5rem;
  background: var(--bg-color);
  border-radius: 8px;
  color: var(--secondary-color);
  font-weight: 600;
}

.badge-unlock-date {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.3rem 0.6rem;
  background: #ffd700;
  color: #000;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ==================== REGULAMENTAÇÃO (REGULATION) ==================== */
.regulation-section {
  margin-top: var(--spacing-xl);
}

.regulation-filters {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md);
  background: var(--surface-color);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.regulation-filters label {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.state-selector {
  flex: 1;
  max-width: 300px;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-color);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.state-selector:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 119, 190, 0.1);
}

.regulation-content {
  margin-top: var(--spacing-lg);
}

.regulation-card {
  background: var(--surface-color);
  border-radius: 12px;
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-md);
}

.piracema-card {
  border-left: 5px solid #ff9800;
  background: linear-gradient(to right, rgba(255, 152, 0, 0.1), var(--surface-color));
}

.regulation-period {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
}

.regulation-card h4 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.regulation-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

.species-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--spacing-md);
}

.species-table th,
.species-table td {
  padding: var(--spacing-sm);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.species-table th {
  background: var(--bg-color);
  color: var(--text-primary);
  font-weight: 600;
}

.species-table tr:hover {
  background: rgba(0, 119, 190, 0.05);
}

.species-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.zone-card {
  background: var(--surface-color);
  border-radius: 12px;
  padding: var(--spacing-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.zone-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.zone-card.restricted {
  border-left: 5px solid #f44336;
}

.zone-card.allowed {
  border-left: 5px solid #4caf50;
}

.zone-card h4 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.zone-status {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: var(--spacing-sm);
}

.zone-status.forbidden {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

.zone-status.allowed {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.zone-penalty {
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: rgba(255, 152, 0, 0.1);
  border-left: 3px solid #ff9800;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==================== SOCIAL FEED ==================== */
.post {
  margin-bottom: var(--spacing-md);
}

.post-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.post-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.post-header h4 {
  margin: 0;
}

.post-header span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.post p {
  margin-bottom: var(--spacing-sm);
}

.post > img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: var(--spacing-sm);
}

.post-actions {
  display: flex;
  gap: var(--spacing-md);
}

.post-actions button {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-fast);
}

.post-actions button:hover {
  color: var(--primary-color);
}

/* ==================== RANKING ==================== */
.rank-item {
  padding: var(--spacing-sm);
  margin-bottom: 0.5rem;
  background: var(--bg-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rank-item:first-child {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  font-weight: 700;
}

.rank-item:nth-child(2) {
  background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
  font-weight: 600;
}

.rank-item:nth-child(3) {
  background: linear-gradient(135deg, #cd7f32 0%, #f4a460 100%);
  font-weight: 600;
}

/* ==================== CAPTURES ==================== */

/* Filters */
.captures-filters {
  background: var(--surface-color);
  padding: var(--spacing-lg);
  border-radius: 12px;
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 119, 190, 0.1);
}

/* Gallery */
.captures-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.capture-card {
  background: var(--surface-color);
  border-radius: 12px;
  overflow: visible;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.capture-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.capture-photo,
.capture-photo-placeholder {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px 12px 0 0;
}

.capture-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-base);
}

.capture-card:hover .capture-photo img {
  transform: scale(1.05);
}

.capture-photo-placeholder {
  background: linear-gradient(135deg, #e0f2f7 0%, #b3e5fc 100%);
  color: var(--primary-color);
}

.capture-photo-placeholder i {
  font-size: 3rem;
  opacity: 0.4;
}

.capture-content {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.capture-content .capture-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.capture-content .capture-header h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.25rem;
  flex: 1;
  min-width: 0;
}

.capture-content .capture-badges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  flex-shrink: 0;
}

.capture-content .badge.success,
.capture-content .badge.iqp-badge {
  position: relative !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.8rem !important;
  border-radius: 12px !important;
  font-size: 0.75rem !important;
  font-weight: 600;
  white-space: nowrap;
  color: white;
  overflow: visible !important;
  min-height: 24px !important;
  width: auto !important;
  height: auto !important;
  top: auto !important;
  right: auto !important;
}

.capture-content .badge.success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.capture-content .badge.iqp-badge {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
}

.capture-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.capture-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.capture-stat i {
  color: var(--primary-color);
  width: 16px;
  text-align: center;
}

.capture-card-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: var(--transition-fast);
}

.capture-card:hover .capture-card-actions {
  opacity: 1;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-icon:hover {
  background: white;
  transform: scale(1.1);
}

.btn-icon.btn-delete {
  color: #ef4444;
}

.btn-icon.btn-delete:hover {
  background: #fee;
  color: #dc2626;
}

/* Capture Detail Modal */
.capture-detail-content {
  padding: var(--spacing-lg);
}

.detail-photo-container {
  margin-bottom: var(--spacing-lg);
  border-radius: 12px;
  overflow: hidden;
  max-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
}

.detail-photo-container img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}

.detail-photo-placeholder {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0f2f7 0%, #b3e5fc 100%);
  color: var(--primary-color);
}

.detail-photo-placeholder i {
  font-size: 5rem;
  opacity: 0.3;
}

.detail-section {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--border-color);
}

.detail-section:last-child {
  border-bottom: none;
}

.detail-section h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
  font-size: 1.25rem;
}

.detail-section h3 i {
  font-size: 1.5rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-item label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-item span {
  color: var(--text-primary);
  font-size: 1rem;
}

.detail-notes {
  background: var(--bg-color);
  padding: var(--spacing-md);
  border-radius: 8px;
  color: var(--text-primary);
  line-height: 1.6;
  white-space: pre-wrap;
}

.btn-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0, 119, 190, 0.4);
  z-index: 999;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  animation: slideInUp 0.5s ease;
}

.btn-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 119, 190, 0.5);
}

.btn-float i {
  font-size: 1.2rem;
}

@keyframes slideInUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==================== ASSISTANT - EQUIPMENT SCHEME ==================== */
.equipment-scheme {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.equipment-item {
  padding: var(--spacing-md);
  background: var(--bg-color);
  border-radius: 8px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.equipment-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.checklist-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  gap: var(--spacing-md);
}

.checklist-section h4 {
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

.checklist-section ul {
  list-style: none;
}

.checklist-section li {
  padding: 0.5rem;
  margin-bottom: 0.25rem;
  background: var(--bg-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checklist-section li::before {
  content: '✓';
  color: var(--secondary-color);
  font-weight: 700;
}

/* ==================== EXPLORE LAYOUT ==================== */
.explore-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: var(--spacing-lg);
}

.locations-sidebar {
  background: var(--surface-color);
  padding: var(--spacing-md);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  max-height: 600px;
  overflow-y: auto;
}

.location-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--spacing-md);
}

#locations-list {
  max-height: 450px;
  overflow-y: auto;
}

/* ==================== TOURS ==================== */
.tours-section {
  margin-top: var(--spacing-xl);
}

.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.tour-card {
  background: var(--surface-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.tour-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tour-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.tour-content {
  padding: var(--spacing-md);
}

.tour-guide {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.tour-guide img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media (max-width: 1024px) {
  .assistant-layout {
    grid-template-columns: 1fr;
  }

  .refinement-form {
    position: static;
  }

  .explore-layout {
    grid-template-columns: 1fr;
  }

  .knots-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .techniques-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .badges-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .zones-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .knot-details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .equipment-scheme {
    grid-template-columns: 1fr;
  }

  .social-layout {
    grid-template-columns: 1fr;
  }

  .btn-float {
    bottom: 20px;
    right: 20px;
    width: auto;
    min-width: 56px;
    height: 56px;
    padding: 0 1.25rem;
    justify-content: center;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .btn-float i {
    font-size: 1.25rem;
    margin-right: 0.5rem;
  }

  /* Ensure logbook button doesn't conflict with comparison button */
  #page-logbook .btn-float {
    bottom: 80px; /* Space for comparison button if visible */
  }

  /* New Features - Mobile Adjustments */
  .knots-grid {
    grid-template-columns: 1fr;
  }

  .techniques-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .badges-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .zones-grid {
    grid-template-columns: 1fr;
  }

  .knot-filters,
  .profile-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .knot-filters::-webkit-scrollbar,
  .profile-tabs::-webkit-scrollbar {
    display: none;
  }

  .regulation-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .state-selector {
    max-width: 100%;
  }

  .species-table {
    font-size: 0.85rem;
  }

  .species-table th,
  .species-table td {
    padding: 0.5rem;
  }

  .technique-video-container {
    height: 250px;
  }

  /* Modal adjustments for mobile */
  .modal-overlay {
    padding: 0.5rem;
  }

  .modal-content {
    max-height: 95vh;
    padding: var(--spacing-md);
    border-radius: 12px;
  }

  .knot-modal,
  .technique-modal {
    max-width: 100%;
  }

  .modal-close {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    top: 0.5rem;
    right: 0.5rem;
  }

  .modal-content h2 {
    font-size: 1.25rem;
    padding-right: 2.5rem;
  }

  .knot-modal h2,
  .technique-modal h2 {
    font-size: 1.25rem;
    padding-right: 2.5rem;
  }

  /* Capture form mobile adjustments */
  .capture-form .form-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .capture-form .form-group {
    margin-bottom: var(--spacing-sm);
  }

  .capture-form label {
    font-size: 0.9rem;
  }

  .capture-form input,
  .capture-form select,
  .capture-form textarea {
    font-size: 1rem; /* Prevent zoom on iOS */
  }

  .modal-actions {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .modal-actions .btn {
    width: 100%;
  }

  /* Capture cards mobile */
  .captures-gallery {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .capture-card {
    padding: var(--spacing-md);
  }

  .capture-details {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .capture-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .capture-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .btn-delete-capture {
    position: static;
    margin-top: var(--spacing-sm);
    width: 100%;
  }

  /* Touch improvements */
  button,
  .btn,
  a {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
  }

  /* Improve touch targets */
  .tab-btn {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }

  .sidebar-category-item {
    min-height: 48px;
    padding: 1rem;
  }

  /* Scroll improvements */
  .categories-sidebar {
    -webkit-overflow-scrolling: touch;
  }

  .modal-content {
    -webkit-overflow-scrolling: touch;
  }

  .level-icon {
    font-size: 3rem;
  }

  .user-level-card h3 {
    font-size: 1.5rem;
  }

  .stat-card h3 {
    font-size: 2rem;
  }

  .badge-icon {
    font-size: 3rem;
  }
}

/* ==================== MOBILE CATALOG MENU ==================== */
.mobile-catalog-menu {
  display: none; /* Hidden on desktop, shown in responsive.css for mobile */
}

.sidebar-backdrop {
  display: none; /* Hidden by default */
}

/* ==================== MODAL DE CAPTURA ==================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 50px rgba(0,0,0,0.3);
}

.modal-content.modal-large {
  max-width: 800px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
  margin: 0;
  color: var(--primary-color);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #333;
}

.modal-body {
  padding: 1.5rem;
}

/* Form Sections */
.form-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group input[readonly] {
  background: #f5f5f5;
  cursor: not-allowed;
}

.required {
  color: #e74c3c;
}

/* Photo Upload */
.photo-upload {
  margin-top: 1rem;
}

.photo-upload input[type="file"] {
  display: none;
}

.photo-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 2px dashed #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.photo-upload-label:hover {
  border-color: var(--primary-color);
  background: #f9f9f9;
}

.photo-upload-label i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.photo-preview {
  margin-top: 1rem;
  position: relative;
}

.photo-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
}

.remove-photo {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(231, 76, 60, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.remove-photo:hover {
  background: #c0392b;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f0f0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }
}

/* ==================== FORM HELPER & BADGES ==================== */
.form-helper-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--bg-color);
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.form-helper-text i {
  color: var(--primary-color);
}

.edited-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: auto;
}

.edited-badge i {
  color: white;
  font-size: 0.7rem;
}

/* Input datetime styles */
input[type="date"],
input[type="time"] {
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.5);
}

input[type="date"].edited,
input[type="time"].edited {
  border-color: #f5576c;
  background: rgba(245, 87, 108, 0.05);
}

/* ==================== ACHIEVEMENT BADGES ==================== */
.badge-status {
  display: block;
  margin-top: 1rem;
  padding: 0.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.badge-status.unlocked-status {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
}

.badge-status.locked-status {
  background: var(--bg-color);
  color: var(--text-secondary);
}

.unlock-date {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-style: italic;
}

.badge-progress {
  margin-top: 1rem;
}

.badge-progress .progress-text {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ==================== FISH MODAL ENHANCEMENTS ==================== */
/* Equipamentos e Condições de Pesca */

.spec-row-full {
  grid-column: 1 / -1;
}

.equipamentos-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.equip-category {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(0, 119, 190, 0.05);
  border-left: 3px solid var(--primary-color);
  border-radius: 4px;
  line-height: 1.6;
}

.equip-category strong {
  color: var(--primary-color);
  min-width: 120px;
  flex-shrink: 0;
}

.condicoes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.condicao-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(16, 185, 129, 0.05);
  border-left: 3px solid #10b981;
  border-radius: 4px;
}

.condicao-item i {
  font-size: 1.2rem;
  color: #10b981;
  flex-shrink: 0;
}

.condicao-item strong {
  color: var(--text-primary);
  margin-right: 0.25rem;
}

.item-scientific-name {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0.25rem 0 0.75rem 0;
  font-style: italic;
}

/* Responsivo */
@media (max-width: 768px) {
  .condicoes-list {
    grid-template-columns: 1fr;
  }

  .equip-category {
    flex-direction: column;
  }

  .equip-category strong {
    min-width: auto;
  }
}

/* ==================== WEATHER FORECAST MODAL ==================== */

.weather-modal {
  max-width: 900px !important;
  max-height: 90vh;
  overflow-y: auto;
}

.weather-modal-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.weather-modal-header h2 {
  margin: 0 0 0.75rem 0;
  color: var(--primary-color);
}

.weather-location {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0.5rem 0;
}

.weather-update {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0.25rem 0 0 0;
}

.weather-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.weather-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.weather-card h3 {
  margin: 0 0 1rem 0;
  color: var(--primary-color);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.weather-current {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.weather-main-temp {
  text-align: center;
  padding: 1rem 0;
}

.temp-value {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.weather-condition {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  text-transform: capitalize;
}

.weather-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.weather-detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(0, 119, 190, 0.05);
  border-radius: 8px;
}

.weather-detail-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.weather-detail-item .detail-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
}

.weather-detail-item .detail-value {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.recommendations-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recommendation-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid;
}

.recommendation-item i {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.recommendation-item strong {
  margin-right: 0.5rem;
}

.recommendation-item.good {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  color: var(--text-primary);
}

.recommendation-item.good i {
  color: #10b981;
}

.recommendation-item.bad {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: var(--text-primary);
}

.recommendation-item.bad i {
  color: #ef4444;
}

.recommendation-item.neutral {
  background: rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
  color: var(--text-primary);
}

.recommendation-item.neutral i {
  color: #3b82f6;
}

.weather-modal-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border-color);
  margin-top: 1rem;
}

/* Responsivo */
@media (max-width: 768px) {
  .weather-modal {
    max-width: 95vw !important;
    margin: 1rem;
  }

  .temp-value {
    font-size: 3rem;
  }

  .weather-details-grid {
    grid-template-columns: 1fr;
  }

  .weather-modal-footer {
    flex-direction: column;
  }
}


/* ==================== REGULATION ALERTS ANIMATION ==================== */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.regulation-alert {
  animation: slideInRight 0.3s ease-out;
}

/* Responsive alerts */
@media (max-width: 768px) {
  #regulation-alerts {
    left: 10px !important;
    right: 10px !important;
    top: 70px !important;
    max-width: none !important;
  }
}

/* ==================== GOOGLE AUTHENTICATION UI ==================== */

/* User Profile Container in Header */
.user-profile-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* User Avatar Button */
.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  background: var(--card-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
}

.user-avatar-btn:hover {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary-color);
}

.user-name-short {
  font-weight: 600;
  font-size: 0.75rem;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Authentication Modal */
.auth-modal {
  max-width: 420px;
  width: 90%;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 16px;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-view {
  padding: 1.5rem;
  background: #ffffff;
}

/* Auth Header */
.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-header i {
  font-size: 2.5rem;
  color: #2563eb;
  margin-bottom: 0.75rem;
}

.auth-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
  color: #1f2937;
  font-weight: 700;
}

.auth-header p {
  color: #6b7280;
  font-size: 0.85rem;
}

/* Google Login Button */
.google-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: white;
  color: #444;
  border: 2px solid #dadce0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1.25rem;
}

.google-login-btn:hover:not(:disabled) {
  border-color: #4285F4;
  background: #f8f9fa;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.15);
}

.google-login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.google-login-btn svg {
  flex-shrink: 0;
}

.google-login-btn span {
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.25px;
}

/* Auth Benefits */
.auth-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: #f3f4f6;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.auth-benefits h3 {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #1f2937;
  font-weight: 600;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem;
  font-size: 0.85rem;
  color: #4b5563;
}

.benefit-item i {
  color: #2563eb;
  font-size: 1rem;
  width: 18px;
  text-align: center;
}

/* Profile View */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid #e5e7eb;
}

.profile-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #2563eb;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #1f2937;
}

.profile-email {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Profile Stats */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.stat-item:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.2rem;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Profile Actions */
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.profile-action-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.profile-action-btn:hover {
  border-color: #2563eb;
  background: #2563eb;
  color: white;
  transform: translateX(4px);
}

.profile-action-btn i {
  width: 18px;
  text-align: center;
  font-size: 1rem;
}

.profile-action-btn.logout-btn {
  border-color: #dc2626;
  color: #dc2626;
}

.profile-action-btn.logout-btn:hover {
  background: #dc2626;
  color: white;
}

/* Responsive Auth Modal */
@media (max-width: 768px) {
  .auth-modal {
    max-width: 95%;
    width: 95%;
  }

  .auth-view {
    padding: 1.5rem;
  }

  .auth-header h2 {
    font-size: 1.5rem;
  }

  .profile-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    text-align: left;
  }

  .user-name-short {
    display: none;
  }

  .user-avatar-btn {
    padding: 0.4rem;
  }
}

/* ==================== SETTINGS PAGE ==================== */

.settings-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.settings-section {
  padding: 1.5rem;
}

.settings-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-section h3 i {
  color: var(--primary-color);
}

.settings-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-color);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.setting-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.setting-item-danger {
  border-color: #fca5a5;
  background: rgba(239, 68, 68, 0.05);
}

.setting-item-danger:hover {
  border-color: #dc2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

.setting-info {
  flex: 1;
}

.setting-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.setting-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.toggle-slider:hover {
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
}

/* Form Select */
.form-select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 180px;
}

.form-select:hover {
  border-color: var(--primary-color);
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Sync Status Indicator */
.sync-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
}

.sync-status i {
  font-size: 1.1rem;
}

.sync-status span {
  font-size: 0.875rem;
}

/* Responsive Settings */
@media (max-width: 768px) {
  .settings-container {
    gap: 1rem;
  }

  .settings-section {
    padding: 1rem;
  }

  .setting-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .setting-item button,
  .toggle-switch,
  .form-select {
    width: 100%;
  }

  .toggle-switch {
    width: 50px;
    align-self: flex-end;
  }

  .sync-status {
    width: 100%;
    justify-content: center;
  }
}

/* ==================== PROFILE TYPE SELECTION MODAL ==================== */

.profile-type-modal {
  max-width: 900px;
  width: 95%;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 1001;
}

.profile-type-header {
  text-align: center;
  padding: 2rem 2rem 1.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
}

.profile-type-header i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.profile-type-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.profile-type-header p {
  font-size: 1rem;
  opacity: 0.9;
}

.profile-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 2rem;
}

.profile-type-card {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.profile-type-card:hover {
  border-color: #2563eb;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
  transform: translateY(-4px);
}

.profile-type-card.selected {
  border-color: #2563eb;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.profile-type-card.selected::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.profile-type-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.profile-type-card:hover .profile-type-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.profile-type-icon i {
  font-size: 2rem;
  color: white;
}

.profile-type-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.profile-type-card > p {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.profile-type-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-top: auto;
}

.profile-type-features span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #4b5563;
  padding: 0.4rem;
  background: #f9fafb;
  border-radius: 6px;
}

.profile-type-features i {
  color: #10b981;
  font-size: 0.75rem;
}

.profile-type-footer {
  padding: 1.5rem 2rem;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.profile-type-footer p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.profile-type-footer i {
  color: #2563eb;
}

/* Responsive Profile Type Modal */
@media (max-width: 768px) {
  .profile-type-modal {
    max-width: 95%;
  }

  .profile-type-header {
    padding: 1.5rem 1rem 1rem;
  }

  .profile-type-header h2 {
    font-size: 1.5rem;
  }

  .profile-type-header i {
    font-size: 2.5rem;
  }

  .profile-type-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem;
  }

  .profile-type-card {
    padding: 1.25rem;
  }

  .profile-type-icon {
    width: 70px;
    height: 70px;
  }

  .profile-type-icon i {
    font-size: 1.75rem;
  }

  .profile-type-card h3 {
    font-size: 1.1rem;
  }

  .profile-type-footer {
    padding: 1rem;
  }

  .profile-type-footer p {
    font-size: 0.8rem;
    text-align: center;
  }
}
