/* Modern Dark Theme - Offer Page */
.offer-page {
  --primary: #3cc30e;
  --primary-light: #00FF1E;
  --primary-dark: #209C29;
  --background: #000000;
  --surface: #0d0d0d;
  --surface-light: #161616;
  --border: #2a2a2a;
  --text: #FFFFFF;
  --text-muted: #999;
  --warning: #f59e0b;
  --success: #3cc30e;
  --danger: #ef4444;
  --purple: #c700ff;
  --purple-light: #e040fb;
  --radius: 10px;
}

/* Main Layout */
.offer-main {
  background: var(--background);
  min-height: 70vh;
  padding: 1rem 0 3rem 0;
}

.offer-container {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header Section */
.offer-header-section {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.offer-title {
  font-family: 'Chakra Petch', 'Inter', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.75rem 0;
  line-height: 1.2;
}

.server-tag-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(60, 195, 14, 0.1);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* Alert Banner */
.alert-banner {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--warning);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.alert-icon {
  font-size: 2rem;
  color: var(--warning);
  flex-shrink: 0;
}

.alert-content h3 {
  color: var(--warning);
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.alert-content p {
  color: var(--text);
  margin: 0 0 1rem 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

.btn-alert-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.btn-alert-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Content Wrapper - 2 Columns */
.offer-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}

/* Left Section */
.offer-left-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Image + Price Row */
.image-price-row {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Product Image Card */
.product-image-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.product-image-container {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  background: #000 url('/b4a34ecf-50f5-4aea-8823-e0f98aedba9c.png') center center / cover no-repeat;
  position: relative;
  margin: 0 auto;
}

.product-image-container.loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(60, 195, 14, 0.1), transparent);
  animation: loading-shimmer 1.5s infinite;
  z-index: 1;
}

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

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
  opacity: 0;
}

.product-image-container.loaded .product-image {
  opacity: 1;
}

.product-image.fallback-image {
  object-fit: contain;
  padding: 1rem;
}

/* Info Cards */
.info-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Chakra Petch', 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem 0;
}

.card-title i {
  color: var(--primary);
  font-size: 1rem;
}

.product-description {
  color: var(--text);
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
  white-space: pre-line;
}

/* Details Card */
.details-card {
  background: var(--surface);
}

.details-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.detail-label {
  color: var(--text-muted);
  font-weight: 600;
}

.server-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(60, 195, 14, 0.1);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.85rem;
}

/* Sidebar */
.offer-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: 20px;
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Chakra Petch', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem 0;
}

.sidebar-title i {
  color: var(--primary);
}

/* Seller Card */
.seller-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.seller-profile {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.seller-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}

.seller-info {
  flex: 1;
  min-width: 0;
}

.seller-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.seller-name:hover {
  color: var(--primary);
}

.seller-stats {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.stat i {
  color: var(--primary);
  font-size: 0.8rem;
}

.stat i.fa-star {
  color: #FFD700;
}

/* Price & Action Card */
.price-action-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: fit-content;
}

.price-section {
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.price-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.price-value {
  display: block;
  font-family: 'Chakra Petch', 'Inter', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(60, 195, 14, 0.4);
  line-height: 1;
}

.stock-info {
  display: flex;
  justify-content: space-around;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.stock-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stock-item i {
  color: var(--primary);
}

.stock-item strong {
  color: var(--text);
}

/* Buttons */
.btn {
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(60, 195, 14, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(60, 195, 14, 0.5);
}

.btn-buy {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 50%, #aa00ea 100%);
  color: white;
  box-shadow: 0 3px 8px rgba(199, 0, 255, 0.4);
  font-size: 1.05rem;
  padding: 1rem 1.5rem;
}

.btn-buy:hover {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple) 50%, var(--purple-light) 100%);
  box-shadow: 0 5px 15px rgba(199, 0, 255, 0.6);
  transform: translateY(-3px);
}

.btn-signin {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #000;
  box-shadow: 0 2px 8px rgba(60, 195, 14, 0.3);
}

.btn-signin:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(60, 195, 14, 0.5);
}

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

.btn-warning:hover {
  background: #d97706;
  transform: translateY(-3px);
}

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

.btn-success:hover {
  background: #059669;
  transform: translateY(-3px);
}

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

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-3px);
}

.btn-secondary {
  background: var(--surface-light);
  color: white;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #3a3a3a;
}

/* Trust Badges */
.trust-badges {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--surface-light);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.trust-badge i {
  font-size: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

.trust-badge span {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
}

/* Edit Modal */
.edit-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow-y: auto;
  padding: 2rem;
}

.edit-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

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

.edit-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: -1;
}

.edit-modal-container {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 700px;
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.edit-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.edit-modal-header h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Chakra Petch', 'Inter', sans-serif;
  color: var(--text);
  font-size: 1.5rem;
  margin: 0;
}

.edit-modal-header h2 i {
  color: var(--primary);
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0.5rem;
}

.btn-close:hover {
  color: var(--text);
}

.status-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface-light);
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.status-label {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.875rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-badge.active {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid #10b981;
}

.status-badge.inactive {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid #ef4444;
}

.status-badge i {
  font-size: 0.6rem;
}

.edit-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
}

.form-group label i {
  color: var(--primary);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(60, 195, 14, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Estilos para input de arquivo */
.form-group input[type="file"].file-input {
  padding: 12px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-group input[type="file"].file-input:hover {
  border-color: var(--primary);
  background: rgba(60, 195, 14, 0.05);
}

.form-group input[type="file"].file-input::-webkit-file-upload-button {
  background: linear-gradient(135deg, var(--primary) 0%, #45a008 100%);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-right: 15px;
  transition: all 0.2s;
}

.form-group input[type="file"].file-input::-webkit-file-upload-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(60, 195, 14, 0.3);
}

.form-group input[type="file"].file-input::file-selector-button {
  background: linear-gradient(135deg, var(--primary) 0%, #45a008 100%);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-right: 15px;
  transition: all 0.2s;
}

.form-group input[type="file"].file-input::file-selector-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(60, 195, 14, 0.3);
}

.form-help {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: -0.25rem;
}

.current-image-preview {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.current-image-preview .preview-img {
  max-width: 150px;
  max-height: 150px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
}

.current-image-preview .preview-label {
  font-size: 0.8rem;
  color: #9ca3af;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.form-actions .btn {
  width: auto;
  min-width: 140px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .offer-content-wrapper {
    grid-template-columns: 1fr 340px;
  }

  .offer-container {
    max-width: 100%;
  }
}

@media (max-width: 992px) {
  .offer-content-wrapper {
    grid-template-columns: 1fr;
  }

  .offer-sidebar {
    position: static;
  }

  /* Ajustar image-price-row em tablets */
  .image-price-row {
    grid-template-columns: 300px 1fr;
    gap: 1.25rem;
  }

  .product-image-card {
    padding: 1.25rem;
  }

  .product-image-container {
    max-width: 260px;
  }
}

@media (max-width: 768px) {
  .offer-container {
    padding: 0 1rem;
  }

  .offer-title {
    font-size: 1.5rem;
  }

  .offer-header-section {
    padding: 1.25rem;
  }

  /* Mobile: Estrutura simplificada */
  .offer-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  /* IMPORTANTE: display contents para nivelar todos os filhos */
  .offer-left-section {
    display: contents;
  }

  .offer-sidebar {
    display: contents;
  }

  /* Image-price-row vira flex column para empilhar verticalmente */
  .image-price-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    grid-template-columns: unset !important;
    width: 100%;
  }

  /* ORDEM 1: Preço/Ação vem PRIMEIRO */
  .price-action-card {
    order: 1 !important;
    padding: 1rem;
    gap: 1rem;
    width: 100%;
    margin: 0;
  }

  /* ORDEM 2: Imagem vem em segundo */
  .product-image-card {
    order: 2 !important;
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    margin: 0 auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .product-image-container {
    max-width: 280px;
    margin: 0 auto;
    display: block !important;
    visibility: visible !important;
  }

  /* Garantir que a imagem apareça no mobile */
  .product-image {
    opacity: 1 !important;
    display: block !important;
  }

  .product-image-container.loading .product-image {
    opacity: 1 !important;
  }

  /* ORDEM 3: Descrição */
  .info-card {
    order: 3;
    width: 100%;
  }

  /* ORDEM 4: Detalhes técnicos */
  .details-card {
    order: 4 !important;
    width: 100%;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* ORDEM 5: Vendedor */
  .seller-card {
    order: 5;
    width: 100%;
    margin: 0 auto;
    max-width: 100%;
  }

  /* ORDEM 6: Trust Badges */
  .trust-badges {
    order: 6;
    width: 100%;
    margin: 0;
  }

  /* Centralizar avatar e info do vendedor */
  .seller-card {
    padding: 1rem;
  }

  .seller-profile {
    justify-content: center;
  }

  .seller-avatar {
    width: 50px;
    height: 50px;
  }

  .seller-name {
    font-size: 1rem;
  }

  .seller-stats {
    font-size: 0.8rem;
  }

  .price-value {
    font-size: 1.85rem;
  }

  .stock-info {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    padding-bottom: 0.75rem;
  }

  .stock-item {
    width: 100%;
  }

  /* Trust badges em coluna */
  .trust-badges {
    padding: 1rem;
  }

  .trust-badge {
    width: 100%;
  }

  /* Formulário */
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .edit-modal {
    padding: 1rem;
  }

  .edit-modal-container {
    padding: 1.5rem;
  }

  .alert-banner {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .offer-container {
    padding: 0 0.75rem;
  }

  .offer-title {
    font-size: 1.3rem;
  }

  .server-tag-header {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .server-badge-inline {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .offer-header-section {
    padding: 1rem;
    display: block !important;
    visibility: visible !important;
  }

  /* Garantir que o servidor apareça */
  .detail-item,
  .details-content {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Image-price-row mobile small */
  .image-price-row {
    gap: 0.875rem;
  }

  /* Cards mais compactos - TODOS 100% largura */
  .seller-card,
  .price-action-card,
  .info-card,
  .trust-badges {
    padding: 0.875rem;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .product-image-card {
    padding: 0.875rem;
    width: 100%;
  }

  .product-image-container {
    max-width: 240px;
    margin: 0 auto;
  }

  .price-value {
    font-size: 1.75rem;
  }

  .price-section {
    padding-bottom: 0.75rem;
  }

  .stock-info {
    padding-bottom: 0.5rem;
  }

  .stock-item {
    font-size: 0.8rem;
  }

  .seller-avatar {
    width: 48px;
    height: 48px;
  }

  .seller-name {
    font-size: 0.95rem;
  }

  .sidebar-title,
  .card-title {
    font-size: 1rem;
  }

  .product-description {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .trust-badge {
    padding: 0.625rem;
  }

  .trust-badge i {
    font-size: 1.1rem;
  }

  .trust-badge span {
    font-size: 0.8rem;
  }

  /* Garantir visibilidade da imagem */
  .product-image {
    display: block !important;
    width: 100%;
    height: 100%;
    opacity: 1 !important;
  }

  .product-image-container.loading .product-image,
  .product-image-container .product-image {
    opacity: 1 !important;
    display: block !important;
  }

  .image-price-row {
    display: flex !important;
    visibility: visible !important;
  }
}

/* Questions Section Styles */
.questions-section {
  order: 7;
}

.question-form-container {
  margin-bottom: 1.5rem;
}

.question-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.question-form textarea {
  width: 100%;
  padding: 1rem;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  transition: all 0.2s;
}

.question-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(60, 195, 14, 0.1);
}

.question-form textarea::placeholder {
  color: var(--text-muted);
}

.question-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-counter {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-question {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  width: auto;
}

.btn-question:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(60, 195, 14, 0.4);
}

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

.btn-question:disabled:hover {
  box-shadow: none;
}

/* Validation Messages */
.question-validation,
.answer-validation {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--warning);
  margin-top: 0.5rem;
}

.question-validation i,
.answer-validation i {
  flex-shrink: 0;
}

.question-validation.valid,
.answer-validation.valid {
  background: rgba(60, 195, 14, 0.1);
  border-color: rgba(60, 195, 14, 0.3);
  color: var(--primary);
}

.question-validation.hidden,
.answer-validation.hidden {
  display: none;
}

.login-to-ask {
  text-align: center;
  padding: 1.5rem;
  background: var(--surface-light);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.login-to-ask p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.login-to-ask a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.login-to-ask a:hover {
  text-decoration: underline;
}

.questions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.loading-questions {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.loading-questions i {
  color: var(--primary);
  margin-right: 0.5rem;
}

.no-questions {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.no-questions i {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

.question-item {
  background: var(--surface-light);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--border);
}

.question-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.question-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.question-meta {
  flex: 1;
}

.question-username {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.question-username:hover {
  text-decoration: underline;
}

.question-date {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.question-text {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  padding-left: 0;
}

.answer-container {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.answer-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.answer-label {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.answer-date {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.answer-text {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Answer Form (for seller) */
.answer-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.answer-form textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  min-height: 60px;
}

.answer-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-answer {
  align-self: flex-end;
  background: var(--primary);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
  width: auto;
}

.btn-answer:hover {
  background: var(--primary-light);
}

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

/* Pending Answer Badge */
.pending-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-left: auto;
}

@media (max-width: 768px) {
  .question-form-footer {
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
  }

  .btn-question {
    width: 100%;
    justify-content: center;
  }

  .char-counter {
    text-align: center;
  }
}
