/* Chanel Princess - Custom Styles */
:root {
  --chanel-black: #000000;
  --chanel-beige: #f5f2e8;
  --chanel-gold: #d4af37;
  --chanel-navy: #1e3a8a;
  --chanel-gray: #6b7280;
  --chanel-light-gray: #f8f9fa;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica', Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--chanel-black) 0%, var(--chanel-navy) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-family: Georgia, serif;
  font-weight: bold;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-title i {
  color: var(--chanel-gold);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--chanel-gold);
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.dashboard-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.dashboard-card.full-width {
  grid-column: 1 / -1;
}

.dashboard-card h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--chanel-black);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-card h2 i {
  color: var(--chanel-gold);
}

/* Page Headers */
.page-header {
  background: var(--chanel-light-gray);
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.page-header h1 {
  font-size: 2.5rem;
  font-family: Georgia, serif;
  color: var(--chanel-black);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.page-header h1 i {
  color: var(--chanel-gold);
}

.page-header p {
  font-size: 1.1rem;
  color: var(--chanel-gray);
}

/* Search & Filters */
.search-section {
  margin-top: 1rem;
}

.search-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-bar input,
.search-bar select {
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  flex: 1;
  min-width: 200px;
}

.search-bar input:focus,
.search-bar select:focus {
  outline: none;
  border-color: var(--chanel-gold);
}

.filters-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filters-bar select {
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
}

/* Buttons */
.btn-primary {
  background: var(--chanel-black);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--chanel-navy);
  transform: translateY(-1px);
}

/* Items Grid */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.item-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.item-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.item-info {
  padding: 1.5rem;
}

.item-name {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--chanel-black);
  margin-bottom: 0.5rem;
}

.item-category {
  color: var(--chanel-gray);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.item-prices {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.current-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--chanel-black);
}

.original-price {
  font-size: 0.9rem;
  color: var(--chanel-gray);
  text-decoration: line-through;
}

.investment-grade {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.grade-a-plus {
  background: #10b981;
  color: white;
}

.grade-a {
  background: #059669;
  color: white;
}

.grade-b {
  background: #f59e0b;
  color: white;
}

.grade-c {
  background: #ef4444;
  color: white;
}

.price-trend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.trend-rising {
  color: #10b981;
}

.trend-falling {
  color: #ef4444;
}

.trend-stable {
  color: var(--chanel-gray);
}

/* Analytics */
.analytics-dashboard {
  margin: 3rem 0;
}

.chart-container {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chart-container h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--chanel-black);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--chanel-black);
}

/* Insights & Recommendations */
.insight-item {
  padding: 1rem;
  border-left: 4px solid var(--chanel-gold);
  background: var(--chanel-light-gray);
  margin-bottom: 1rem;
  border-radius: 0 8px 8px 0;
}

.insight-title {
  font-weight: bold;
  color: var(--chanel-black);
  margin-bottom: 0.5rem;
}

.insight-description {
  color: var(--chanel-gray);
  font-size: 0.9rem;
}

.performer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.performer-item:last-child {
  border-bottom: none;
}

.performer-name {
  font-weight: bold;
  color: var(--chanel-black);
}

.performer-roi {
  font-weight: bold;
  color: #10b981;
}

.performer-roi.negative {
  color: #ef4444;
}

/* Loading States */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: var(--chanel-gray);
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    flex-direction: column;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .search-bar {
    flex-direction: column;
  }

  .search-bar input,
  .search-bar select,
  .btn-primary {
    width: 100%;
  }

  .items-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Menu */
#mobile-menu {
  display: none;
  background: var(--chanel-black);
  padding: 1rem;
}

#mobile-menu.show {
  display: block;
}

#mobile-menu a {
  display: block;
  color: white;
  padding: 0.5rem 0;
  text-decoration: none;
  border-bottom: 1px solid #333;
}

#mobile-menu a:hover {
  color: var(--chanel-gold);
}

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

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Management Page Styles */
.management-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.import-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  font-weight: 600;
  color: var(--chanel-black);
}

.form-group select,
.form-group input[type="text"],
.form-group input[type="number"] {
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--chanel-gold);
}

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

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  margin: 0;
}

.btn-secondary {
  background: var(--chanel-gray);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: #4b5563;
  transform: translateY(-1px);
}

.btn-secondary:disabled,
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Import Progress */
.import-progress {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--chanel-light-gray);
  border-radius: 8px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: var(--chanel-gold);
  width: 0%;
  transition: width 0.3s ease;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.progress-text {
  font-size: 0.9rem;
  color: var(--chanel-gray);
  text-align: center;
}

/* Import Results */
.import-results {
  margin-top: 1.5rem;
}

.import-success {
  padding: 1.5rem;
  background: #ecfdf5;
  border: 2px solid #10b981;
  border-radius: 8px;
}

.import-success h3 {
  margin-bottom: 0.5rem;
  color: #065f46;
}

.import-error {
  padding: 1.5rem;
  background: #fef2f2;
  border: 2px solid #ef4444;
  border-radius: 8px;
}

.import-error h3 {
  margin-bottom: 0.5rem;
  color: #991b1b;
}

.import-details {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  background: white;
  border-radius: 4px;
}

/* Status Display */
.status-container {
  padding: 1rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.status-item {
  text-align: center;
  padding: 1rem;
  background: var(--chanel-light-gray);
  border-radius: 8px;
}

.status-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--chanel-gold);
}

.status-label {
  font-size: 0.8rem;
  color: var(--chanel-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.last-update {
  font-size: 0.9rem;
  color: var(--chanel-gray);
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* Database Stats */
.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.stat-row:last-child {
  border-bottom: none;
}

/* Activity Log */
.activity-log {
  max-height: 300px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-time {
  font-size: 0.8rem;
  color: var(--chanel-gray);
  white-space: nowrap;
}

.activity-action {
  flex: 1;
  margin: 0 1rem;
  font-weight: 500;
}

.activity-type {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
}

.activity-type.success {
  background: #dcfce7;
  color: #166534;
}

.activity-type.info {
  background: #dbeafe;
  color: #1e40af;
}

.activity-type.error {
  background: #fecaca;
  color: #991b1b;
}

/* Portfolio Page Styles */
.portfolio-summary {
  margin: 2rem 0;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-2px);
}

.summary-card.highlight {
  background: linear-gradient(135deg, var(--chanel-black) 0%, var(--chanel-navy) 100%);
  color: white;
}

.summary-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--chanel-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--chanel-gold);
}

.summary-card.highlight .summary-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--chanel-gold);
}

.summary-content {
  flex: 1;
}

.summary-value {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--chanel-black);
}

.summary-card.highlight .summary-value {
  color: white;
}

.summary-value.positive {
  color: #10b981;
}

.summary-value.negative {
  color: #ef4444;
}

.summary-label {
  font-size: 0.9rem;
  color: var(--chanel-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.summary-card.highlight .summary-label {
  color: rgba(255, 255, 255, 0.8);
}

/* Item Form Styles */
.item-form {
  margin-top: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--chanel-black);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--chanel-gold);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Form Results */
.form-result {
  margin-top: 1.5rem;
}

.form-success,
.form-error,
.form-loading {
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.form-success {
  background: #ecfdf5;
  border: 2px solid #10b981;
  color: #065f46;
}

.form-error {
  background: #fef2f2;
  border: 2px solid #ef4444;
  color: #991b1b;
}

.form-loading {
  background: #f0f9ff;
  border: 2px solid #3b82f6;
  color: #1e40af;
}

.roi-preview {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.roi-stat {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  background: white;
  border-radius: 6px;
}

.roi-label {
  font-weight: 500;
}

.roi-value {
  font-weight: bold;
}

.roi-value.positive {
  color: #10b981;
}

.roi-value.negative {
  color: #ef4444;
}

/* Portfolio Items */
.portfolio-items {
  margin-top: 1.5rem;
}

.portfolio-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.3s ease;
}

.portfolio-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.item-title h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
  color: var(--chanel-black);
}

.model-number {
  font-size: 0.9rem;
  color: var(--chanel-gray);
  background: var(--chanel-beige);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
}

.item-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  background: var(--chanel-beige);
  color: var(--chanel-black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-icon:hover {
  background: var(--chanel-gold);
  color: white;
}

.item-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 500;
  color: var(--chanel-gray);
}

.detail-value {
  font-weight: 600;
  color: var(--chanel-black);
}

.detail-value.roi {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.detail-value.roi.positive {
  color: #10b981;
}

.detail-value.roi.negative {
  color: #ef4444;
}

/* Empty Portfolio */
.empty-portfolio {
  text-align: center;
  padding: 3rem;
  color: var(--chanel-gray);
}

/* ROI Modal */
.roi-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.roi-modal {
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}

.roi-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.roi-modal-header h2 {
  margin: 0;
  color: var(--chanel-black);
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--chanel-gray);
  cursor: pointer;
  padding: 0.5rem;
}

.close-modal:hover {
  color: var(--chanel-black);
}

.roi-modal-content {
  padding: 1.5rem;
}

.roi-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.roi-summary-card {
  text-align: center;
  padding: 1rem;
  background: var(--chanel-beige);
  border-radius: 8px;
}

.roi-summary-value {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--chanel-black);
}

.roi-summary-value.positive {
  color: #10b981;
}

.roi-summary-value.negative {
  color: #ef4444;
}

.roi-summary-label {
  font-size: 0.9rem;
  color: var(--chanel-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.market-comparisons h3 {
  margin-bottom: 1rem;
  color: var(--chanel-black);
}

.comparison-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.comparison-name {
  font-weight: 600;
  color: var(--chanel-black);
}

.comparison-details {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.comparison-price {
  font-weight: bold;
  color: var(--chanel-gold);
}

.comparison-platform {
  font-size: 0.9rem;
  color: var(--chanel-gray);
}

.comparison-similarity {
  font-size: 0.8rem;
  background: var(--chanel-beige);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: var(--chanel-black);
}

/* Responsive Portfolio */
@media (max-width: 768px) {
  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .item-header {
    flex-direction: column;
    gap: 1rem;
  }

  .item-details {
    grid-template-columns: 1fr;
  }

  .roi-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .comparison-details {
    width: 100%;
    justify-content: space-between;
  }
}

/* Responsive Management */
@media (max-width: 768px) {
  .management-dashboard {
    grid-template-columns: 1fr;
  }

  .status-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .import-details {
    grid-template-columns: 1fr;
  }

  .activity-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .activity-time {
    order: 3;
  }

  .activity-type {
    order: 2;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.font-bold { font-weight: bold; }
.font-semibold { font-weight: 600; }
.font-normal { font-weight: normal; }

/* ============================================================================
   INSURANCE PAGE STYLES
   ============================================================================ */

/* Insurance Summary Cards */
.insurance-summary {
  margin-bottom: 2rem;
}

.insurance-summary .summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Insurance Controls */
.insurance-controls {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.control-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Insurance Table */
#insurance-table .item-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

#insurance-table .item-name {
  font-weight: 600;
  color: var(--chanel-black);
}

#insurance-table .item-category {
  font-size: 0.875rem;
  color: var(--chanel-gray);
}

#insurance-table .insurance-value {
  font-weight: 600;
  color: var(--chanel-navy);
}

/* Risk Badges */
.risk-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.risk-badge.risk-low {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.risk-badge.risk-medium {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.risk-badge.risk-high {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-small {
  background: var(--chanel-gray);
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.btn-small:hover {
  background: var(--chanel-black);
  transform: translateY(-1px);
}

/* Risk Analysis Section */
.risk-container {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.risk-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.risk-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.risk-card.risk-low {
  border-left-color: #28a745;
}

.risk-card.risk-medium {
  border-left-color: #ffc107;
}

.risk-card.risk-high {
  border-left-color: #dc3545;
}

.risk-icon {
  font-size: 2rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.risk-card.risk-low .risk-icon {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.risk-card.risk-medium .risk-icon {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.risk-card.risk-high .risk-icon {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.risk-content {
  flex: 1;
}

.risk-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--chanel-black);
  margin-bottom: 0.25rem;
}

.risk-label {
  font-size: 0.875rem;
  color: var(--chanel-gray);
  margin-bottom: 0.25rem;
}

.risk-percentage {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--chanel-navy);
}

.risk-recommendations {
  background: var(--chanel-light-gray);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.risk-recommendations h3 {
  margin-bottom: 1rem;
  color: var(--chanel-black);
}

.risk-recommendations ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.risk-recommendations li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

.risk-recommendations li:last-child {
  border-bottom: none;
}

/* Market Predictions Section */
.predictions-container {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.predictions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.prediction-card {
  background: var(--chanel-light-gray);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.prediction-card h4 {
  margin: 0 0 1rem 0;
  color: var(--chanel-black);
  font-size: 1.25rem;
  font-weight: 600;
}

.prediction-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.stat-value.positive {
  color: #28a745;
}

.stat-value.negative {
  color: #dc3545;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--chanel-gray);
}

.market-insights {
  background: var(--chanel-light-gray);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.market-insights h3 {
  margin-bottom: 1rem;
  color: var(--chanel-black);
}

.insights-list {
  display: grid;
  gap: 1rem;
}

.insight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 6px;
  border-left: 3px solid var(--chanel-gold);
}

.insight-item i {
  color: var(--chanel-gold);
  font-size: 1.25rem;
  width: 1.5rem;
  text-align: center;
}

/* ============================================================================
   DIRECT SALE FUNCTIONALITY STYLES
   ============================================================================ */

/* Sale Section in Portfolio Items */
.item-sale-section {
  background: var(--chanel-light-gray);
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 6px;
  border-left: 4px solid var(--chanel-gold);
}

.sell-price-highlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: white;
  border-radius: 4px;
  border: 1px solid var(--chanel-gold);
}

.sell-price-label {
  font-size: 0.9rem;
  color: var(--chanel-gray);
  font-weight: 500;
}

.sell-price-value {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--chanel-navy);
}

.btn-open-sale {
  background: var(--chanel-gold);
  color: var(--chanel-black);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  font-size: 0.95rem;
}

.btn-open-sale:hover {
  background: #b8941f;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.no-sell-price {
  text-align: center;
  padding: 1rem 0;
}

.no-sell-price p {
  margin: 0 0 1rem 0;
  color: var(--chanel-gray);
  font-size: 0.9rem;
}

.btn-set-price {
  background: var(--chanel-navy);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-set-price:hover {
  background: #164287;
  transform: translateY(-1px);
}

/* Sale Modal Styles */
.sale-modal {
  max-width: 600px;
}

.sale-item-preview {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--chanel-light-gray);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.sale-item-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--chanel-gold);
}

.sale-item-details h3 {
  margin: 0 0 0.5rem 0;
  color: var(--chanel-black);
  font-size: 1.25rem;
}

.model-number {
  color: var(--chanel-gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.sale-pricing {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-row.highlight {
  padding: 0.5rem;
  background: white;
  border-radius: 4px;
  border-left: 3px solid var(--chanel-gold);
  font-weight: 600;
}

.price-label {
  font-size: 0.9rem;
  color: var(--chanel-gray);
}

.price-value {
  font-weight: 600;
  color: var(--chanel-black);
}

/* Sale Platforms */
.sale-options h4 {
  margin: 0 0 1rem 0;
  color: var(--chanel-black);
}

.sale-platforms {
  display: grid;
  gap: 0.75rem;
}

.platform-btn {
  background: white;
  border: 2px solid #e9ecef;
  padding: 1rem;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}

.platform-btn:hover {
  border-color: var(--chanel-gold);
  background: var(--chanel-beige);
  transform: translateY(-1px);
}

.platform-btn i {
  color: var(--chanel-gold);
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

.platform-btn span {
  display: block;
  font-weight: 600;
  color: var(--chanel-black);
  margin-bottom: 0.25rem;
}

.platform-btn small {
  color: var(--chanel-gray);
  font-size: 0.85rem;
}

.sale-terms {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.sale-terms label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--chanel-gray);
  cursor: pointer;
}

/* Export Modal Styles */
.export-modal {
  max-width: 500px;
}

.export-instructions {
  margin-bottom: 1.5rem;
}

.export-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e9ecef;
}

.export-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--chanel-gold);
  color: var(--chanel-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-content h4 {
  margin: 0 0 0.5rem 0;
  color: var(--chanel-black);
  font-size: 1rem;
}

.step-content p {
  margin: 0 0 1rem 0;
  color: var(--chanel-gray);
  font-size: 0.9rem;
  line-height: 1.4;
}

.export-data {
  margin-top: 0.75rem;
}

.export-success {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  margin-top: 1rem;
}

/* Price Modal Styles */
.price-modal {
  max-width: 450px;
}

.price-context {
  margin-bottom: 2rem;
}

.price-context h3 {
  margin: 0 0 1rem 0;
  color: var(--chanel-black);
}

.price-comparison {
  background: var(--chanel-light-gray);
  padding: 1rem;
  border-radius: 6px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.price-item:last-child {
  margin-bottom: 0;
}

.price-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.price-symbol {
  position: absolute;
  left: 12px;
  color: var(--chanel-gray);
  font-weight: 600;
  z-index: 1;
}

.price-input-group input {
  padding-left: 2rem;
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
}

.price-input-group input:focus {
  border-color: var(--chanel-gold);
  outline: none;
}

/* General Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
  background: var(--chanel-black);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.close-modal {
  background: none;
  border: none;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-content {
  padding: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .insurance-summary .summary-cards {
    grid-template-columns: 1fr;
  }
  
  .control-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .control-group button {
    width: 100%;
  }
  
  .predictions-grid {
    grid-template-columns: 1fr;
  }
  
  .prediction-stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .risk-summary {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }

  /* Direct Sale Mobile Styles */
  .sale-item-preview {
    flex-direction: column;
    text-align: center;
  }

  .sale-item-image {
    align-self: center;
  }

  .price-row {
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
  }

  .export-step {
    flex-direction: column;
    text-align: center;
  }

  .step-number {
    align-self: center;
  }

  .modal {
    width: 95%;
    margin: 1rem;
  }

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

  .platform-btn {
    text-align: center;
  }
}
/* Price Check Page Styles */
.form-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.form-section:last-child {
  border-bottom: none;
}

.form-section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1f2937;
  margin-bottom: 1rem;
}

.price-check-summary {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-item .stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #d4af37;
}

.stat-item .stat-label {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.platform-results {
  margin-top: 2rem;
}

.platform-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}

.platform-section h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1f2937;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.results-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.result-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1rem;
  transition: all 0.2s ease;
}

.result-card:hover {
  border-color: #d4af37;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.result-header h5 {
  flex: 1;
  margin: 0;
  color: #1f2937;
  font-size: 1rem;
}

.price-badge {
  background: #d4af37;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-weight: bold;
  font-size: 1rem;
}

.result-details {
  margin-bottom: 1rem;
}

.result-details p {
  margin: 0.25rem 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.result-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.confidence-score {
  font-size: 0.75rem;
  color: #6b7280;
}

.polling-status, .no-results, .timeout-message, .error-message {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
}

.loading-spinner {
  font-size: 2rem;
  color: #d4af37;
  margin-bottom: 1rem;
}

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

.recent-check-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.recent-check-item:hover {
  border-color: #d4af37;
}

.check-description h4 {
  margin: 0 0 0.5rem 0;
  color: #1f2937;
  font-size: 1rem;
}

.check-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.check-meta .category {
  background: #e5e7eb;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.check-results {
  display: flex;
  gap: 1rem;
}

.result-stat {
  text-align: center;
  min-width: 60px;
}

.result-stat .value {
  display: block;
  font-weight: bold;
  color: #d4af37;
}

.result-stat .label {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
}

.no-recent-checks {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
}

@media (max-width: 768px) {
  .summary-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .recent-check-item {
    flex-direction: column;
    gap: 1rem;
  }
  
  .check-results {
    align-self: stretch;
    justify-content: space-around;
  }
}

/* ============================================================================ */
/* ADMIN DASHBOARD STYLES */
/* ============================================================================ */

/* Admin Tab Navigation */
.admin-tab {
  padding: 0.75rem 1.5rem;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.admin-tab:hover {
  color: var(--chanel-gold);
  border-bottom-color: rgba(212, 175, 55, 0.3);
}

.admin-tab.active {
  color: var(--chanel-gold);
  border-bottom-color: var(--chanel-gold);
  background: rgba(212, 175, 55, 0.05);
}

.admin-tab-content {
  margin-top: 1rem;
}

.admin-tab-content.hidden {
  display: none;
}

/* Admin Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-table thead {
  background: var(--chanel-black);
  color: white;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.admin-table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.admin-table th.sortable {
  cursor: pointer;
  position: relative;
  user-select: none;
}

.admin-table th.sortable:hover {
  background: rgba(255, 255, 255, 0.1);
}

.admin-table th.sortable:after {
  content: '\f0dc';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 0.5rem;
  opacity: 0.5;
  font-size: 0.75rem;
}

.admin-table th.sort-asc:after {
  content: '\f0de';
  opacity: 1;
  color: var(--chanel-gold);
}

.admin-table th.sort-desc:after {
  content: '\f0dd';
  opacity: 1;
  color: var(--chanel-gold);
}

.admin-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.05);
}

.admin-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.admin-table tbody tr:nth-child(even):hover {
  background: rgba(212, 175, 55, 0.08);
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-available {
  background: #d1fae5;
  color: #065f46;
}

.status-sold {
  background: #dbeafe;
  color: #1e40af;
}

.status-reserved {
  background: #fef3c7;
  color: #92400e;
}

.status-shipped {
  background: #e0e7ff;
  color: #3730a3;
}

.status-pending {
  background: #fed7aa;
  color: #9a3412;
}

.status-completed {
  background: #dcfce7;
  color: #166534;
}

.status-cancelled {
  background: #fecaca;
  color: #991b1b;
}

/* VIP Badge */
.vip-badge {
  background: linear-gradient(45deg, var(--chanel-gold), #f59e0b);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.vip-badge i {
  font-size: 0.625rem;
}

/* Form Controls */
.form-select,
.form-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: white;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  min-width: 120px;
}

.form-select:focus,
.form-input:focus {
  outline: none;
  border-color: var(--chanel-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-checkbox {
  width: 1rem;
  height: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  accent-color: var(--chanel-gold);
}

/* Buttons */
.btn-secondary {
  padding: 0.5rem 1rem;
  background: #6b7280;
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover:not(:disabled) {
  background: #4b5563;
}

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

/* Price Display */
.price-display {
  font-weight: 600;
  color: var(--chanel-black);
}

.price-positive {
  color: #059669;
}

.price-negative {
  color: #dc2626;
}

.profit-margin {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  display: inline-block;
  min-width: 60px;
  text-align: center;
}

.profit-margin.high {
  background: #d1fae5;
  color: #065f46;
}

.profit-margin.medium {
  background: #fef3c7;
  color: #92400e;
}

.profit-margin.low {
  background: #fecaca;
  color: #991b1b;
}

/* Loading States */
.loading-row {
  text-align: center;
  padding: 2rem;
}

.loading-spinner {
  animation: spin 1s linear infinite;
  color: var(--chanel-gold);
  font-size: 1.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Admin Tables */
@media (max-width: 1024px) {
  .admin-table {
    font-size: 0.875rem;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 0.5rem;
  }
  
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 768px) {
  .admin-tab {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .dashboard-card .flex {
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-select,
  .form-input {
    width: 100%;
  }
  
  .admin-table {
    font-size: 0.75rem;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 0.375rem;
  }
}

/* Admin Dashboard Grid Responsiveness */
@media (max-width: 640px) {
  .grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid.grid-cols-1.md\\:grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================ */
/* AI RESEARCH AGENT STYLES */
/* ============================================================================ */

.ai-research-section {
  margin-top: 2rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 2rem;
}

.ai-research-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 2rem;
  color: white;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.ai-research-card h3 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.ai-research-card p {
  opacity: 0.9;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.ai-research-controls {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.ai-research-controls .form-group {
  margin-bottom: 1rem;
}

.ai-research-controls .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ai-research-controls label {
  display: block;
  color: white;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ai-research-controls input,
.ai-research-controls select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #1f2937;
  font-size: 1rem;
}

.ai-research-controls input:focus,
.ai-research-controls select:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.ai-research-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.ai-research-buttons .btn-primary,
.ai-research-buttons .btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.ai-research-buttons .btn-primary {
  background: #ffd700;
  color: #1f2937;
}

.ai-research-buttons .btn-primary:hover {
  background: #f7c600;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.ai-research-buttons .btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.ai-research-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.ai-research-progress {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.ai-research-progress .progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.ai-research-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #f7c600);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.ai-research-progress .progress-text {
  color: white;
  text-align: center;
  margin-top: 1rem;
  font-weight: 500;
}

.ai-research-results {
  margin-top: 2rem;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  color: #1f2937;
}

.research-error {
  text-align: center;
  padding: 2rem;
  color: #dc2626;
}

.research-error i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.research-header {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.research-header h4 {
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.research-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.metadata-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

.metadata-item.confidence-high { background: #dcfce7; color: #166534; }
.metadata-item.confidence-medium { background: #fef3c7; color: #92400e; }
.metadata-item.confidence-low { background: #fee2e2; color: #dc2626; }

.research-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.research-section h5 {
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Market Analysis Styles */
.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.analysis-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-header {
  font-weight: 700;
  color: #374151;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.price-range {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-item {
  text-align: center;
}

.price-label {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.price-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
}

.price-value.highlight {
  color: #667eea;
  font-size: 1.5rem;
}

.indicators-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.indicator:last-child {
  border-bottom: none;
}

.indicator-label {
  font-size: 0.875rem;
  color: #6b7280;
}

.indicator-value {
  font-weight: 600;
}

.indicator-value.trend-rising { color: #059669; }
.indicator-value.trend-stable { color: #6b7280; }
.indicator-value.trend-declining { color: #dc2626; }

.indicator-value.demand-high { color: #059669; }
.indicator-value.demand-medium { color: #d97706; }
.indicator-value.demand-low { color: #dc2626; }

.price-history {
  margin-top: 2rem;
}

.price-history h6 {
  color: #374151;
  font-weight: 700;
  margin-bottom: 1rem;
}

.history-list {
  background: white;
  border-radius: 6px;
  overflow: hidden;
}

.history-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
}

.history-item:last-child {
  border-bottom: none;
}

.history-date { color: #6b7280; }
.history-price { font-weight: 600; color: #1f2937; }
.history-condition { color: #059669; }
.history-source { color: #667eea; }

/* Authenticity Styles */
.authenticity-section {
  border-left-color: #10b981;
}

.authenticity-score {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: 700;
}

.score-circle.score-excellent { background: linear-gradient(135deg, #10b981, #059669); }
.score-circle.score-good { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.score-circle.score-fair { background: linear-gradient(135deg, #f59e0b, #d97706); }
.score-circle.score-poor { background: linear-gradient(135deg, #ef4444, #dc2626); }

.score-value {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.score-label {
  font-size: 0.75rem;
  opacity: 0.9;
}

.authenticity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.authenticity-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.authenticity-card h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.marker-list {
  list-style: none;
  padding: 0;
}

.marker-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
  position: relative;
  padding-left: 1.5rem;
}

.marker-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

.marker-list.warning li:before { color: #f59e0b; }
.marker-list.tips li:before { color: #3b82f6; }
.marker-list.danger li:before { color: #ef4444; }

.marker-list li:last-child {
  border-bottom: none;
}

/* Investment Styles */
.investment-section {
  border-left-color: #f59e0b;
}

.investment-overview {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
}

.investment-grade {
  text-align: center;
  min-width: 120px;
}

.grade-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.grade-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 600;
}

.grade-Aplus { color: #059669; }
.grade-A { color: #10b981; }
.grade-Bplus { color: #3b82f6; }
.grade-B { color: #6366f1; }
.grade-Cplus { color: #f59e0b; }
.grade-C { color: #ef4444; }

.investment-metrics {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.metric:last-child {
  border-bottom: none;
}

.metric-label {
  font-weight: 600;
  color: #374151;
}

.metric-value {
  font-weight: 700;
}

.metric-value.positive { color: #059669; }
.metric-value.negative { color: #dc2626; }

.metric-value.risk-low { color: #059669; }
.metric-value.risk-medium { color: #f59e0b; }
.metric-value.risk-high { color: #dc2626; }

.factors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.factors-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.factors-card.positive { border-left: 4px solid #10b981; }
.factors-card.negative { border-left: 4px solid #ef4444; }
.factors-card.neutral { border-left: 4px solid #6b7280; }

.factors-card h6 {
  margin-bottom: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.factors-card ul {
  list-style: none;
  padding: 0;
}

.factors-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
}

.factors-card li:last-child {
  border-bottom: none;
}

/* Product Details Styles */
.product-details {
  border-left-color: #8b5cf6;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 600;
  color: #374151;
}

.spec-value {
  color: #6b7280;
}

.variations {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
}

.variations h6 {
  color: #374151;
  font-weight: 700;
  margin-bottom: 1rem;
}

.variation-item {
  padding: 1rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.variation-item:last-child {
  border-bottom: none;
}

.variation-name {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.variation-details {
  font-size: 0.875rem;
  color: #6b7280;
}

.variation-price {
  font-weight: 600;
  color: #667eea;
  margin-top: 0.25rem;
}

/* Market Comparisons Styles */
.market-comparisons {
  border-left-color: #ec4899;
}

.comparisons-table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr;
  background: #f9fafb;
  padding: 1rem;
  font-weight: 700;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr;
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
}

.table-row:last-child {
  border-bottom: none;
}

.table-row:hover {
  background: #f9fafb;
}

.col-platform a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.col-platform a:hover {
  text-decoration: underline;
}

.col-price {
  font-weight: 600;
  color: #1f2937;
}

/* News & Trends Styles */
.news-section {
  border-left-color: #06b6d4;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.news-item {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.news-header h6 {
  margin-bottom: 0.5rem;
}

.news-header h6 a {
  color: #1f2937;
  text-decoration: none;
  font-weight: 700;
}

.news-header h6 a:hover {
  color: #667eea;
  text-decoration: underline;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
}

.news-source {
  background: #667eea;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.news-date {
  color: #6b7280;
}

.relevance-score {
  background: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.news-summary {
  color: #6b7280;
  line-height: 1.6;
  font-size: 0.875rem;
}

/* Responsive Design for AI Research */
@media (max-width: 1024px) {
  .analysis-grid,
  .authenticity-grid {
    grid-template-columns: 1fr;
  }
  
  .factors-grid {
    grid-template-columns: 1fr;
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ai-research-controls .form-row {
    grid-template-columns: 1fr;
  }
  
  .ai-research-buttons {
    flex-direction: column;
  }
  
  .research-metadata {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .investment-overview {
    flex-direction: column;
    text-align: center;
  }
  
  .table-header,
  .table-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .table-header > div,
  .table-row > div {
    padding: 0.5rem;
  }
  
  .table-header > div:before {
    content: attr(class) ": ";
    font-weight: normal;
    color: #6b7280;
  }
}

/* ============================================================================
   IMAGE SEARCH AND DEEP PRICE RESEARCH STYLES
   ============================================================================ */

/* Image Selection Section */
.image-selection-section {
  margin: 2rem 0;
  padding: 2rem;
  background: linear-gradient(145deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  border: 2px dashed var(--chanel-gold);
}

.image-selection-section h5 {
  color: var(--chanel-black);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.selection-instruction {
  color: var(--chanel-gray);
  margin-bottom: 2rem;
  font-style: italic;
}

/* Image Grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Individual Image Item */
.image-item {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.image-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  border-color: var(--chanel-gold);
}

.image-item.selected {
  border-color: var(--chanel-gold);
  background: linear-gradient(145deg, #fff9e6, #ffffff);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* Image Thumbnail */
.image-thumbnail {
  position: relative;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.image-thumbnail img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* Image Overlay */
.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

.image-item:hover .image-overlay {
  opacity: 1;
}

.image-overlay i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.image-overlay span {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Image Details */
.image-details {
  text-align: center;
}

.image-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--chanel-black);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  height: 2.8rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.image-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.image-source {
  color: var(--chanel-gray);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.estimated-price {
  color: var(--chanel-gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.image-description {
  font-size: 0.8rem;
  color: var(--chanel-gray);
  line-height: 1.3;
  height: 3.9rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin: 0;
}

/* Selected Item Badge */
.selected-item-info {
  margin: 2rem 0;
  text-align: center;
}

.selected-item-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #d4af37, #f4e5a7);
  color: var(--chanel-black);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

/* Real-Time Prices Section */
.real-time-prices {
  background: linear-gradient(145deg, #e8f5e8, #ffffff);
  border: 1px solid #28a745;
  border-radius: 12px;
}

.real-time-prices h5 {
  color: #28a745;
  border-bottom: 2px solid #28a745;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.price-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(40, 167, 69, 0.05);
  border-radius: 8px;
}

.price-stat {
  text-align: center;
}

.price-label {
  display: block;
  font-size: 0.875rem;
  color: var(--chanel-gray);
  margin-bottom: 0.25rem;
}

.price-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--chanel-black);
}

.price-value.highlight {
  color: #28a745;
  font-size: 1.75rem;
}

/* Real-Time Listings */
.real-time-listings h6 {
  color: var(--chanel-black);
  margin-bottom: 1rem;
  font-weight: 600;
}

.listings-table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.listings-table .table-header {
  background: #28a745;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.listings-table .table-row {
  border-bottom: 1px solid #e5e7eb;
}

.listings-table .table-row:last-child {
  border-bottom: none;
}

.listings-table .table-row.sold-listing {
  background: rgba(220, 53, 69, 0.05);
  opacity: 0.7;
}

.listings-table .col-platform,
.listings-table .col-price,
.listings-table .col-condition,
.listings-table .col-availability,
.listings-table .col-updated {
  padding: 0.75rem;
  font-size: 0.875rem;
}

.availability-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.availability-badge.available {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.availability-badge.sold {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

/* Platform Analysis Results */
.crawl-results {
  background: linear-gradient(145deg, #e3f2fd, #ffffff);
  border: 1px solid #2196f3;
  border-radius: 12px;
}

.crawl-results h5 {
  color: #2196f3;
  border-bottom: 2px solid #2196f3;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.crawl-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1rem;
}

.crawl-result-card {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #e3f2fd;
}

.crawl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.crawl-header h6 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.crawl-header h6 a {
  color: #2196f3;
  text-decoration: none;
}

.crawl-header h6 a:hover {
  text-decoration: underline;
}

.crawl-timestamp {
  font-size: 0.75rem;
  color: var(--chanel-gray);
  white-space: nowrap;
}

.crawl-content {
  font-size: 0.875rem;
}

.extracted-prices {
  margin-bottom: 0.75rem;
}

.price-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  margin: 0.125rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.price-tag.available {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.price-tag.sold {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.extracted-specs {
  padding-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
}

.spec-item {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  margin: 0.125rem;
  background: rgba(107, 114, 128, 0.1);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--chanel-gray);
}

/* Research Section Enhancements */
.research-section.real-time-prices,
.research-section.crawl-results {
  padding: 2rem;
  margin: 2rem 0;
}

/* Responsive Design for Image Search */
@media (max-width: 1024px) {
  .image-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .crawl-results-grid {
    grid-template-columns: 1fr;
  }
  
  .price-summary {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: 1fr;
  }
  
  .image-selection-section {
    padding: 1rem;
  }
  
  .image-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .price-summary {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .price-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  
  .price-label {
    margin-bottom: 0;
  }
  
  .listings-table .table-header,
  .listings-table .table-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .listings-table .col-platform:before { content: "Platform: "; font-weight: bold; }
  .listings-table .col-price:before { content: "Price: "; font-weight: bold; }
  .listings-table .col-condition:before { content: "Condition: "; font-weight: bold; }
  .listings-table .col-availability:before { content: "Status: "; font-weight: bold; }
  .listings-table .col-updated:before { content: "Updated: "; font-weight: bold; }
}

/* ============================================================================
   Enhanced Search Results with Images
   ============================================================================ */

.search-metadata {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--chanel-light-gray);
  border-radius: 8px;
  border-left: 4px solid var(--chanel-gold);
}

.search-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--chanel-gray);
}

.search-summary i {
  color: var(--chanel-gold);
}

.enhanced-item-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.enhanced-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--chanel-gold);
}

.item-image-section {
  position: relative;
}

.primary-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.primary-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.enhanced-item-card:hover .primary-image img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.available-count {
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.price-range {
  font-size: 0.95rem;
  font-weight: 600;
}

.seller-thumbnails {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #f8f9fa;
  overflow-x: auto;
}

.seller-thumbnail {
  flex-shrink: 0;
  width: 80px;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.seller-thumbnail:hover {
  transform: scale(1.05);
}

.seller-thumbnail img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
}

.seller-thumbnail:hover img {
  border-color: var(--chanel-gold);
}

.seller-info {
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  background: white;
  padding: 0.25rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 0.7rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.seller-thumbnail:hover .seller-info {
  opacity: 1;
}

.seller-info .platform {
  display: block;
  font-weight: 600;
  color: var(--chanel-black);
}

.seller-info .price {
  display: block;
  color: var(--chanel-gold);
  font-weight: 500;
}

.item-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.item-header .item-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--chanel-black);
  margin-bottom: 0.25rem;
}

.item-header .item-category {
  font-size: 0.9rem;
  color: var(--chanel-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.item-analytics {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.analytics-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric .label {
  font-size: 0.8rem;
  color: var(--chanel-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric .value {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--chanel-black);
}

.seller-summary {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.seller-platforms {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.platform-tag {
  background: var(--chanel-light-gray);
  color: var(--chanel-gray);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.view-all-btn {
  background: var(--chanel-black);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-all-btn:hover {
  background: var(--chanel-navy);
  transform: translateY(-1px);
}

.image-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.image-modal {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: var(--chanel-light-gray);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--chanel-black);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--chanel-gray);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.close-modal:hover {
  background: #e5e7eb;
  color: var(--chanel-black);
}

.modal-content {
  padding: 2rem;
  flex: 1;
  overflow-y: auto;
}

.research-prompt {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.prompt-icon {
  width: 80px;
  height: 80px;
  background: var(--chanel-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 0.5rem;
}

.research-prompt h4 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--chanel-black);
}

.research-prompt p {
  margin: 0;
  color: var(--chanel-gray);
  line-height: 1.6;
  max-width: 400px;
}

.prompt-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.prompt-actions .btn-primary {
  background: var(--chanel-black);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prompt-actions .btn-primary:hover {
  background: var(--chanel-navy);
  transform: translateY(-1px);
}

.prompt-actions .btn-secondary {
  background: #e5e7eb;
  color: var(--chanel-gray);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prompt-actions .btn-secondary:hover {
  background: #d1d5db;
  color: var(--chanel-black);
}

/* Responsive Design for Enhanced Cards */
@media (max-width: 768px) {
  .enhanced-item-card {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .primary-image {
    height: 200px;
  }
  
  .analytics-row {
    flex-direction: column;
    align-items: start;
    gap: 0.5rem;
  }
  
  .seller-summary {
    flex-direction: column;
    align-items: start;
    gap: 1rem;
  }
  
  .prompt-actions {
    flex-direction: column;
    width: 100%;
  }
}

/* ========================================
   AI VISUAL IDENTIFICATION SYSTEM STYLES
   ======================================== */

.ai-identification-section {
  animation: slideInDown 0.6s ease-out;
}

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

.ai-upload-area:hover {
  border-color: rgba(255,255,255,0.6) !important;
  background-color: rgba(255,255,255,0.05) !important;
  transform: translateY(-2px);
}

.ai-prediction-card:hover {
  background: rgba(255,255,255,0.15) !important;
  transform: translateY(-2px);
}

.ai-prediction-card.selected {
  border: 2px solid rgba(255,255,255,0.8) !important;
  background: rgba(255,255,255,0.2) !important;
}

.select-prediction-btn:hover {
  background: rgba(255,255,255,0.3) !important;
  border-color: rgba(255,255,255,0.5) !important;
  transform: scale(1.05);
}

/* AI-filled form fields styling */
.form-group input[style*="linear-gradient"] {
  transition: all 0.3s ease;
}

.form-group input[style*="linear-gradient"]:focus {
  background: linear-gradient(90deg, #dbeafe 0%, #ffffff 100%) !important;
  border-left: 4px solid #1d4ed8 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ai-indicator {
  animation: fadeInRight 0.5s ease-out;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Loading animation for AI processing */
.ai-loading i.fa-spinner {
  animation: spin 1s linear infinite;
}

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

/* Confidence score styling */
.confidence-high {
  background: #10b981 !important;
}

.confidence-medium {
  background: #f59e0b !important;
}

.confidence-low {
  background: #ef4444 !important;
}

/* Mobile responsiveness for AI section */
@media (max-width: 768px) {
  .ai-identification-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
  }
  
  .ai-header h3 {
    font-size: 1.25rem;
  }
  
  .ai-upload-area {
    padding: 1.5rem;
  }
  
  .ai-prediction-card {
    padding: 0.75rem;
  }
  
  .ai-prediction-card > div:first-child {
    flex-direction: column;
    align-items: start;
    gap: 0.5rem;
  }
}

/* Notification styles */
#notification {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}

#notification.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

#notification.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

#notification.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

#notification.info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

/* ============================================================================ */
/* AI WEB CRAWLER RESEARCH STYLES */
/* ============================================================================ */

.ai-webcrawler-research-section {
  padding: 2rem;
}

.ai-webcrawler-research-section .section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.ai-webcrawler-research-section .header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.ai-webcrawler-research-section .header-content h3 {
  margin: 0;
  color: var(--chanel-black);
  font-size: 1.5rem;
}

.success-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.research-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #f3f4f6;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--chanel-gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-card .feature-icon {
  background: linear-gradient(135deg, var(--chanel-gold) 0%, #b45309 100%);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
}

.feature-card h4 {
  margin: 0 0 0.5rem;
  color: var(--chanel-black);
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  color: var(--chanel-gray);
  font-size: 0.875rem;
  line-height: 1.4;
}

.research-form-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.research-form-section .form-group {
  margin-bottom: 1.5rem;
}

.research-form-section .form-group:last-child {
  margin-bottom: 0;
}

.research-form-section label {
  display: block;
  font-weight: 600;
  color: var(--chanel-black);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.research-form-section .form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.research-form-section .form-control:focus {
  outline: none;
  border-color: var(--chanel-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.research-form-section .form-help {
  display: block;
  color: var(--chanel-gray);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.btn-research {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-research.btn-primary {
  background: linear-gradient(135deg, var(--chanel-black) 0%, var(--chanel-navy) 100%);
  color: white;
}

.btn-research.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-research.btn-secondary {
  background: #e5e7eb;
  color: var(--chanel-gray);
}

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

/* Progress Styles */
.ai-research-progress {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.progress-header h4 {
  margin: 0;
  color: var(--chanel-black);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-badge.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-description {
  color: var(--chanel-gray);
  margin-bottom: 2rem;
}

.progress-indicator {
  text-align: center;
  margin-bottom: 2rem;
}

.progress-indicator .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top-color: var(--chanel-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.progress-indicator p {
  margin: 0.5rem 0;
  color: var(--chanel-gray);
  font-size: 0.9rem;
}

.progress-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.progress-stats .stat {
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.progress-stats .stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--chanel-gray);
  margin-bottom: 0.25rem;
}

.progress-stats .stat-value {
  display: block;
  font-weight: 600;
  color: var(--chanel-black);
}

/* Results Styles */
.ai-research-results {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ai-summary {
  padding: 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

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

.summary-header h4 {
  margin: 0;
  color: var(--chanel-black);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.success-status {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.ai-metrics .metric {
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ai-metrics .metric-label {
  display: block;
  font-size: 0.875rem;
  color: var(--chanel-gray);
  margin-bottom: 0.25rem;
}

.ai-metrics .metric-value {
  display: block;
  font-weight: 600;
  color: var(--chanel-black);
  font-size: 1.1rem;
}

.ai-metrics .metric-value.success {
  color: #10b981;
}

.ai-metrics .metric-value.highlight {
  color: var(--chanel-gold);
}

.success-info {
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #0369a1;
}

.research-section {
  padding: 2rem;
  border-top: 1px solid #e5e7eb;
}

.research-section h5 {
  margin: 0 0 1.5rem;
  color: var(--chanel-black);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.result-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.result-card:hover {
  transform: translateY(-4px);
}

.result-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.real-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.result-content {
  padding: 1.5rem;
}

.result-title {
  margin: 0 0 0.5rem;
  color: var(--chanel-black);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.result-platform {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--chanel-gold);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.result-description {
  color: var(--chanel-gray);
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.result-actions {
  display: flex;
  justify-content: flex-end;
}

.result-link {
  color: var(--chanel-navy);
  text-decoration: none;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.3s ease;
}

.result-link:hover {
  color: var(--chanel-gold);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.platform-card {
  background: linear-gradient(135deg, var(--chanel-black) 0%, var(--chanel-navy) 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
}

.platform-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.platform-count {
  color: var(--chanel-gold);
  font-size: 0.875rem;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.performance-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.performance-label {
  font-size: 0.875rem;
  color: var(--chanel-gray);
  margin-bottom: 0.5rem;
}

.performance-value {
  font-weight: 600;
  color: var(--chanel-black);
}

.performance-value.success {
  color: #10b981;
}

.performance-value.highlight {
  color: var(--chanel-gold);
  font-size: 1.1rem;
}

.research-actions {
  padding: 2rem;
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.research-actions .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.research-actions .btn-primary {
  background: linear-gradient(135deg, var(--chanel-black) 0%, var(--chanel-navy) 100%);
  color: white;
}

.research-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.research-actions .btn-secondary {
  background: white;
  color: var(--chanel-black);
  border: 2px solid #e5e7eb;
}

.research-actions .btn-secondary:hover {
  border-color: var(--chanel-gold);
  color: var(--chanel-gold);
}

/* Error Styles */
.ai-research-error {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.error-header {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 2rem;
}

.error-header h4 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.error-content {
  padding: 2rem;
}

.error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #dc2626;
  margin-bottom: 2rem;
}

.error-suggestions h6 {
  color: var(--chanel-black);
  margin-bottom: 1rem;
}

.error-suggestions ul {
  color: var(--chanel-gray);
  line-height: 1.6;
}

.retry-actions {
  margin-top: 2rem;
  text-align: center;
}

.retry-actions .btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--chanel-black) 0%, var(--chanel-navy) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.retry-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================================================
   CHANEL EXPLORER - AI-POWERED MARKET INTELLIGENCE STYLES
   ============================================================================ */

/* Explorer Search Input Focus Effects */
#explorer-search-input:focus {
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.3);
  transform: scale(1.02);
}

/* Explorer Suggestions Dropdown */
#explorer-suggestions {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
}

#explorer-suggestions .suggestion-item {
  transition: background-color 0.2s ease;
}

#explorer-suggestions .suggestion-item:hover {
  background-color: #f5f2e8;
}

/* Master Product Cards */
.master-product-card {
  transition: all 0.3s ease;
}

.master-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Wishlist Heart Animation */
.wishlist-heart {
  transition: all 0.2s ease;
}

.wishlist-heart:hover {
  transform: scale(1.1);
}

.wishlist-heart.active {
  background: #ef4444;
  color: white;
}

/* ROI Progress Bars */
.roi-progress {
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #10b981 100%);
  background-size: 100% 100%;
}

/* Search Progress Animation */
.search-progress-container {
  position: relative;
  overflow: hidden;
}

.search-progress-bar {
  transition: width 0.8s ease-out;
  background: linear-gradient(90deg, #d4af37, #f59e0b, #d4af37);
  background-size: 200% 100%;
  animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Wishlist Sidebar */
#wishlist-sidebar {
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

/* Explorer Quick Search Buttons */
.explorer-quick-search {
  transition: all 0.2s ease;
}

.explorer-quick-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Price Range Display */
.price-range {
  background: linear-gradient(135deg, #f5f2e8, #ffffff);
  border: 1px solid #d4af37;
}

/* Seller Tags */
.seller-tag {
  background: #f3f4f6;
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.seller-tag:hover {
  background: #d4af37;
  color: #000000;
}

/* Confidence Score Indicators */
.confidence-high { color: #10b981; }
.confidence-medium { color: #f59e0b; }
.confidence-low { color: #ef4444; }

/* ROI Potential Indicators */
.roi-excellent { color: #10b981; }
.roi-good { color: #84cc16; }
.roi-fair { color: #f59e0b; }
.roi-poor { color: #ef4444; }

/* Explorer Results Grid */
.explorer-results-grid {
  display: grid;
  gap: 1.5rem;
}

/* Loading States */
.explorer-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.explorer-spinner {
  width: 2rem;
  height: 2rem;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #d4af37;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Status Badges */
.status-live {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.status-cached {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: white;
}

/* Product Image Overlays */
.product-image-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.product-image-overlay:hover {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.05));
}

/* Action Button Hover Effects */
.explorer-btn-primary {
  background: linear-gradient(135deg, #d4af37, #f59e0b);
  transition: all 0.3s ease;
}

.explorer-btn-primary:hover {
  background: linear-gradient(135deg, #f59e0b, #d4af37);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.explorer-btn-secondary {
  border: 2px solid #d4af37;
  color: #d4af37;
  background: transparent;
  transition: all 0.3s ease;
}

.explorer-btn-secondary:hover {
  background: #d4af37;
  color: #000000;
  transform: translateY(-2px);
}

/* Mobile Responsiveness for Explorer */
@media (max-width: 768px) {
  .explorer-search-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .master-product-card {
    flex-direction: column;
  }
  
  .explorer-quick-search {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
  
  #wishlist-sidebar {
    width: 100%;
  }
  
  .explorer-results-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .ai-webcrawler-research-section .header-content {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .research-features-grid {
    grid-template-columns: 1fr;
  }
  
  .ai-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .research-actions {
    flex-direction: column;
  }
}
