/* Check Price Page - Dark Theme with Shopee Orange Accents */

/* Ensure consistent dark theme */
body {
  background: var(--dark-primary, #0F0F0F);
  color: var(--text-primary, #FFFFFF);
}

/* ==================== HEADER NAVIGATION ==================== */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-brand h1 {
  font-size: 1.5rem;
  margin: 0;
}

.header-brand h1 a {
  background: linear-gradient(135deg, #FF6B35, #FF8C42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-nav {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  color: #B8B8B8;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: #FF6B35;
  color: white;
  border-color: #FF6B35;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,107,53,0.3);
}

/* ==================== PRICE CHECK SECTION ==================== */
.price-check-section {
  background: linear-gradient(135deg, #232323 0%, #2A2A2A 100%);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  color: white;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  border: 1px solid #333333;
}

.price-check-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FF6B35, #FF8C42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-check-desc {
  font-size: 1rem;
  color: #B8B8B8;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.price-check-form {
  max-width: 600px;
  margin: 0 auto;
}

.url-input-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.url-input {
  flex: 1;
  min-width: 300px;
  padding: 1rem 1.5rem;
  border: 1px solid #333333;
  border-radius: 12px;
  font-size: 1rem;
  background: #1A1A1A;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.url-input::placeholder {
  color: #6B6B6B;
}

.url-input:focus {
  outline: none;
  background: #232323;
  border-color: #FF6B35;
  box-shadow: 0 0 0 3px rgba(255,107,53,0.2);
}

.check-btn {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #FF6B35, #FF8C42);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  box-shadow: 0 4px 16px rgba(255,107,53,0.3);
}

.check-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.4);
  background: linear-gradient(135deg, #E55A2B, #FF6B35);
}

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

.btn-loading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.url-help {
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.url-help p {
  margin: 0.5rem 0;
  color: #B8B8B8;
}

.url-help strong {
  color: #FF6B35;
}

/* ==================== STATES ==================== */
.loading-state,
.error-state {
  text-align: center;
  padding: 3rem 2rem;
  background: #232323;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  margin-bottom: 2rem;
  border: 1px solid #333333;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top: 4px solid #FF6B35;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.loading-state p {
  color: #B8B8B8;
  font-size: 1rem;
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.error-state h3 {
  color: #FF4D4F;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.error-state p {
  color: #B8B8B8;
  margin-bottom: 1.5rem;
}

.retry-btn {
  background: linear-gradient(135deg, #FF6B35, #FF8C42);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255,107,53,0.3);
}

.retry-btn:hover {
  background: linear-gradient(135deg, #E55A2B, #FF6B35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.4);
}

/* ==================== RESULTS SECTION ==================== */
.results-section {
  animation: fadeInUp 0.6s ease;
}

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

/* ==================== PRODUCT INFO CARD ==================== */
.product-info-card {
  background: #232323;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  border: 1px solid #333333;
}

.product-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.product-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  border: 1px solid #333333;
}

.product-details {
  flex: 1;
}

.product-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.price-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.current-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: #FF6B35;
}

.original-price {
  font-size: 1.1rem;
  color: #6B6B6B;
  text-decoration: line-through;
}

.discount-percent {
  background: linear-gradient(135deg, #FF6B35, #FF8C42);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255,107,53,0.3);
}

.product-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #B8B8B8;
  font-size: 0.9rem;
}

.stat-icon {
  font-size: 1.1rem;
}

/* ==================== PRICE ANALYSIS GRID ==================== */
/* Compact Price Analysis - Side by side with chart on desktop */
.price-analysis-compact {
  margin-bottom: 1.5rem;
}

/* Desktop layout - Price Status + Chart side by side */
@media (min-width: 1024px) {
  .results-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .price-chart-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2rem;
    align-items: start;
  }
  
  .price-analysis-compact {
    margin-bottom: 0;
  }
  
  .price-status-card {
    height: 100%;
    min-height: 250px;
    position: sticky;
    top: 20px;
  }
  
  .chart-section {
    margin-bottom: 0;
  }
}

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

.analysis-card {
  background: linear-gradient(135deg, #232323 0%, #1a1a1a 100%);
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 107, 53, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
}

.analysis-card:hover {
  border-color: rgba(255, 107, 53, 0.5);
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.15);
  transform: translateY(-2px);
}

.analysis-card .card-content {
  padding: 0;
}

.card-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #333333;
  padding-bottom: 0.75rem;
}

.card-header h4 {
  color: #FFFFFF;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

/* ==================== PRICE STATUS ==================== */
.price-status {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem;
}

.status-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: 16px;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  text-align: center;
}

.status-badge #statusIcon {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.status-badge #statusText {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.status-badge.good {
  background: linear-gradient(135deg, #52C41A, #73D13D);
  color: white;
}

.status-badge.bad {
  background: linear-gradient(135deg, #FF4D4F, #FF7875);
  color: white;
}

.status-badge.trending {
  background: linear-gradient(135deg, #FF6B35, #FF8C42);
  color: white;
}

.status-badge.premium {
  background: linear-gradient(135deg, #722ED1, #D3ADF7);
  color: white;
}

.status-badge.stable {
  background: linear-gradient(135deg, #1890FF, #40A9FF);
  color: white;
}

.status-badge.normal {
  background: linear-gradient(135deg, #52C41A, #73D13D);
  color: white;
}

.recommendation {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
  font-size: 0.95rem;
  color: #E8E8E8;
  line-height: 1.7;
  text-align: left;
}

.recommendation strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #FF6B35;
}

.recommendation small {
  display: block;
  margin-top: 0.5rem;
  color: #B8B8B8;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ==================== PRICE STATISTICS ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.stats-grid .stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.stats-grid .stat-item:hover {
  background: rgba(255,107,53,0.1);
  border-color: rgba(255,107,53,0.3);
}

.stat-label {
  font-size: 0.8rem;
  color: #B8B8B8;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #FF6B35;
}

/* ==================== CHART SECTION ==================== */
.chart-section {
  background: linear-gradient(135deg, #232323 0%, #1a1a1a 100%);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 107, 53, 0.2);
  transition: all 0.3s ease;
}

.chart-section:hover {
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.1);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 107, 53, 0.1);
}

.chart-header h4 {
  margin: 0;
  background: linear-gradient(135deg, #FF6B35, #FF8C42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.chart-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chart-btn {
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255, 107, 53, 0.3);
  background: rgba(255, 107, 53, 0.05);
  color: #E8E8E8;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.chart-btn:hover {
  border-color: rgba(255, 107, 53, 0.6);
  background: rgba(255, 107, 53, 0.1);
  transform: translateY(-1px);
}

.chart-btn.active {
  border-color: #FF6B35;
  background: linear-gradient(135deg, #FF6B35, #FF8C42);
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(255,107,53,0.4);
}

.chart-container {
  position: relative;
  height: 400px;
  width: 100%;
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.05);
}

/* ==================== ACTION SECTION ==================== */
.action-section {
  background: #232323;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  text-align: center;
  border: 1px solid #333333;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.buy-btn {
  background: linear-gradient(135deg, #52C41A, #73D13D);
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(82,196,26,0.3);
}

.buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(82,196,26,0.4);
  color: white;
}

.copy-link-btn {
  background: linear-gradient(135deg, #FF6B35, #FF8C42);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(255,107,53,0.3);
}

.copy-link-btn:hover {
  background: linear-gradient(135deg, #FF8C42, #FF6B35);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.5);
}

.action-note {
  color: #B8B8B8;
  font-size: 0.9rem;
  margin: 0;
}

.action-note strong {
  color: #FF6B35;
}

/* ==================== SAMPLE SECTION ==================== */
.sample-section {
  background: #232323;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  text-align: center;
  border: 1px solid #333333;
}

.sample-section h3 {
  color: #FFFFFF;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  font-weight: 800;
}

.sample-section p {
  color: #B8B8B8;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.sample-products {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.sample-btn {
  background: linear-gradient(135deg, #722ED1, #9254DE);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(114,46,209,0.3);
}

.sample-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(114,46,209,0.4);
}

.deal-1k-btn {
  background: linear-gradient(135deg, #FF6B35, #FF8C42);
  color: white;
  text-decoration: none;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 4px 16px rgba(255,107,53,0.3);
}

.deal-1k-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.4);
  color: white;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
  .price-check-section {
    padding: 1.5rem;
  }
  
  .price-check-header h2 {
    font-size: 1.5rem;
  }
  
  .price-check-desc {
    font-size: 0.9rem;
  }
  
  .url-input-group {
    flex-direction: column;
  }
  
  .url-input {
    min-width: auto;
  }
  
  .product-header {
    flex-direction: column;
    text-align: center;
  }
  
  .product-image {
    width: 100px;
    height: 100px;
    align-self: center;
  }
  
  .product-name {
    font-size: 1.1rem;
  }
  
  .current-price {
    font-size: 1.5rem;
  }
  
  .price-info {
    justify-content: center;
  }
  
  .product-stats {
    justify-content: center;
  }
  
  .chart-header {
    flex-direction: column;
    text-align: center;
  }
  
  .chart-container {
    height: 280px;
    padding: 0.75rem;
  }
  
  /* Adjust chart controls for mobile */
  .chart-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }
  
  .chart-controls {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .chart-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    white-space: nowrap;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .buy-btn,
  .share-btn,
  .watch-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .sample-products {
    flex-direction: column;
    align-items: stretch;
  }
  
  .sample-btn,
  .deal-1k-btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .header-brand h1 {
    font-size: 1.2rem;
  }
  
  .header-nav {
    justify-content: center;
    gap: 0.5rem;
  }
  
  .nav-link {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .price-check-section {
    padding: 1rem;
  }
  
  .price-check-header h2 {
    font-size: 1.3rem;
  }
  
  .product-info-card,
  .analysis-card,
  .chart-section,
  .action-section,
  .sample-section {
    padding: 1rem;
  }
  
  /* Mobile - Stack vertically */
  .price-chart-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .price-analysis-compact {
    margin-bottom: 0;
  }
  
  .price-analysis-grid {
    grid-template-columns: 1fr;
  }
  
  .price-status-card {
    min-height: auto;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .current-price {
    font-size: 1.3rem;
  }
  
  .product-name {
    font-size: 1rem;
  }
}

/* ==================== VOUCHER SECTION ==================== */
.voucher-section {
  background: #232323;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  border: 1px solid #333333;
}

.voucher-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #333333;
}

.voucher-header-icon {
  font-size: 2rem;
}

.voucher-header-text h3 {
  color: #FFFFFF;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 0.25rem 0;
}

.voucher-header-text p {
  color: #B8B8B8;
  font-size: 0.85rem;
  margin: 0;
}

/* Category Tabs */
.voucher-categories {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #FF6B35 #333;
}

.voucher-categories::-webkit-scrollbar {
  height: 4px;
}

.voucher-categories::-webkit-scrollbar-track {
  background: #333;
  border-radius: 2px;
}

.voucher-categories::-webkit-scrollbar-thumb {
  background: #FF6B35;
  border-radius: 2px;
}

.category-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: #2A2A2A;
  border: 1px solid #333;
  border-radius: 20px;
  color: #B8B8B8;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.category-tab:hover {
  background: #333;
  border-color: #FF6B35;
  color: #FF6B35;
}

.category-tab.active {
  background: linear-gradient(135deg, #FF6B35, #FF8C42);
  border-color: #FF6B35;
  color: white;
  box-shadow: 0 2px 8px rgba(255,107,53,0.4);
}

.category-tab-icon {
  font-size: 1rem;
}

.category-tab-count {
  background: rgba(255,255,255,0.2);
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

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

@media (max-width: 768px) {
  .vouchers-grid {
    grid-template-columns: 1fr;
  }
}

/* Voucher Card - Clone Shopee Design */
.voucher-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  display: flex;
  border: 1px solid #e5e5e5;
}

.voucher-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.voucher-card::before {
  content: '';
  position: absolute;
  left: 100px;
  top: -5px;
  bottom: -5px;
  width: 10px;
  background: #232323;
  z-index: 1;
}

.voucher-card::after {
  content: '';
  position: absolute;
  left: 100px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #232323;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 
    0 -20px 0 #232323,
    0 20px 0 #232323,
    0 -40px 0 #232323,
    0 40px 0 #232323;
}

.voucher-left {
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  position: relative;
  z-index: 0;
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
}

.voucher-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.voucher-category {
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
  padding: 0 4px;
}

.voucher-right {
  flex: 1;
  padding: 0.75rem 0.75rem 0.75rem 1.5rem;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.voucher-discount {
  font-size: 1.2rem;
  font-weight: 900;
  color: #FF6B35;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.voucher-title {
  font-size: 0.8rem;
  color: #333;
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.voucher-condition {
  font-size: 0.7rem;
  color: #666;
  margin-bottom: 0.4rem;
}

.voucher-note {
  background: #FFF5F2;
  border-left: 3px solid #FF6B35;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  line-height: 1.4;
  position: relative;
}

.voucher-note-label {
  color: #FF6B35;
  font-weight: 700;
  margin-right: 0.25rem;
}

.voucher-note-text {
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.voucher-note-text.expanded {
  display: block;
  -webkit-line-clamp: unset;
}

.voucher-note-toggle {
  color: #FF6B35;
  font-weight: 600;
  cursor: pointer;
  margin-left: 0.25rem;
  text-decoration: underline;
  font-size: 0.7rem;
  display: inline;
}

.voucher-note-toggle:hover {
  color: #E55A2B;
}

.voucher-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.voucher-expiry {
  font-size: 0.65rem;
  color: #999;
  flex: 1;
}

.voucher-expiry.urgent {
  color: #FF4D4F;
  font-weight: 600;
}

.voucher-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

/* Dropdown for Check SP button */
.voucher-dropdown {
  position: relative;
}

.voucher-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding-right: 0.5rem !important;
}

.dropdown-arrow {
  font-size: 0.6rem;
  transition: transform 0.3s ease;
}

.voucher-dropdown-menu.show .dropdown-arrow {
  transform: rotate(180deg);
}

.voucher-dropdown-menu {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 0.3rem;
  background: #2A2A2A;
  border: 1px solid #3A3A3A;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  min-width: 180px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.voucher-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: transparent;
  border: none;
  color: #E8E8E8;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.75rem;
  font-weight: 600;
}

.dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}

.dropdown-item:hover {
  background: rgba(255,107,53,0.1);
  color: #FF6B35;
}

.dropdown-icon {
  font-size: 0.9rem;
}

.dropdown-text {
  flex: 1;
  white-space: nowrap;
}

.voucher-btn {
  background: linear-gradient(135deg, #FF6B35, #FF8C42);
  color: white;
  border: none;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.voucher-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(255,107,53,0.4);
}

.voucher-btn.secondary {
  background: white;
  color: #FF6B35;
  border: 1px solid #FF6B35;
}

.voucher-btn.secondary:hover {
  background: #FFF5F2;
}

.voucher-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #FF4D4F;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.voucher-level-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  color: white;
}

.voucher-saving {
  background: rgba(82, 196, 26, 0.08);
  border: 1px solid rgba(82, 196, 26, 0.2);
  border-radius: 6px;
  padding: 0.5rem;
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.voucher-saving-icon {
  font-size: 1.2rem;
}

.voucher-saving-text {
  flex: 1;
}

.voucher-saving-label {
  font-size: 0.65rem;
  color: #52C41A;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.voucher-saving-amount {
  font-size: 0.95rem;
  font-weight: 900;
  color: #52C41A;
}

.voucher-saving-final {
  font-size: 0.7rem;
  color: #666;
  margin-top: 0.15rem;
}

/* Voucher Loading */
.voucher-loading {
  text-align: center;
  padding: 2rem;
  color: #B8B8B8;
}

.voucher-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,107,53,0.2);
  border-top: 4px solid #FF6B35;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.voucher-empty {
  text-align: center;
  padding: 2rem;
  color: #B8B8B8;
}

.voucher-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Load More Button */
.voucher-load-more {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
}

.load-more-btn {
  background: linear-gradient(135deg, #FF6B35, #FF8C42);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255,107,53,0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,107,53,0.5);
}

.load-more-icon {
  font-size: 1.2rem;
  animation: bounce 2s ease-in-out infinite;
}

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

/* Copy Code Modal */
.copy-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 10001;
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 400px;
  width: 90%;
}

.copy-modal.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.copy-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.copy-modal-backdrop.active {
  opacity: 1;
}

.copy-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.copy-modal-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.copy-modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 0.5rem;
}

.copy-modal-subtitle {
  font-size: 0.9rem;
  color: #666;
}

.copy-code-box {
  background: #F5F5F5;
  border: 2px dashed #FF6B35;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.copy-code-text {
  font-size: 1.8rem;
  font-weight: 900;
  color: #FF6B35;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.copy-code-hint {
  font-size: 0.8rem;
  color: #999;
}

.copy-modal-actions {
  display: flex;
  gap: 1rem;
}

.copy-modal-btn {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-modal-btn.primary {
  background: linear-gradient(135deg, #52C41A, #73D13D);
  color: white;
  box-shadow: 0 4px 16px rgba(82,196,26,0.3);
}

.copy-modal-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(82,196,26,0.4);
}

.copy-modal-btn.secondary {
  background: #F5F5F5;
  color: #666;
}

.copy-modal-btn.secondary:hover {
  background: #E0E0E0;
}

/* ==================== RESPONSIVE VOUCHERS ==================== */
@media (max-width: 768px) {
  .vouchers-grid {
    grid-template-columns: 1fr;
  }
  
  .voucher-section {
    padding: 1.5rem;
  }
  
  .voucher-card {
    min-height: auto;
  }
  
  .voucher-card::before {
    left: 85px;
  }
  
  .voucher-card::after {
    left: 85px;
  }
  
  .voucher-left {
    width: 85px;
    padding: 0.6rem 0.4rem;
  }
  
  .voucher-image {
    width: 50px;
    height: 50px;
    padding: 6px;
  }
  
  .voucher-category {
    font-size: 0.65rem;
  }
  
  .voucher-right {
    padding: 0.6rem 0.6rem 0.6rem 1.25rem;
  }
  
  .voucher-discount {
    font-size: 1.1rem;
  }
  
  .voucher-title {
    font-size: 0.75rem;
  }
  
  .voucher-condition {
    font-size: 0.65rem;
  }
  
  .voucher-btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.65rem;
  }
  
  .voucher-saving {
    padding: 0.4rem;
  }
  
  .voucher-saving-amount {
    font-size: 0.85rem;
  }
}

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

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

.voucher-card {
  animation: fadeInUp 0.4s ease forwards;
}

.voucher-card:nth-child(1) { animation-delay: 0.05s; }
.voucher-card:nth-child(2) { animation-delay: 0.1s; }
.voucher-card:nth-child(3) { animation-delay: 0.15s; }
.voucher-card:nth-child(4) { animation-delay: 0.2s; }
.voucher-card:nth-child(5) { animation-delay: 0.25s; }
.voucher-card:nth-child(6) { animation-delay: 0.3s; }

/* ==================== COPY LINK INSTRUCTION BANNER ==================== */
.copy-instruction-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.copy-instruction-banner.active {
  opacity: 1;
}

.copy-instruction-content {
  background: linear-gradient(135deg, #232323 0%, #2A2A2A 100%);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border: 2px solid #FF6B35;
  animation: slideUpBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-height: 90vh;
  overflow-y: auto;
}

.copy-instruction-header {
  background: linear-gradient(135deg, #FF6B35, #FF8C42);
  padding: 1.5rem;
  border-radius: 18px 18px 0 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.copy-instruction-icon {
  font-size: 2.5rem;
  animation: bounce 2s ease-in-out infinite;
}

.copy-instruction-header h4 {
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  flex: 1;
}

.copy-instruction-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.copy-instruction-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.copy-instruction-body {
  padding: 2rem;
  color: #E8E8E8;
}

.copy-instruction-main {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  background: rgba(255, 107, 53, 0.1);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid #FF6B35;
}

.copy-instruction-main strong {
  color: #FF6B35;
}

.copy-instruction-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #FF6B35, transparent);
  margin: 1.5rem 0;
}

.copy-instruction-check {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FF6B35;
  margin-bottom: 1rem;
}

.copy-instruction-steps {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem 1.5rem 1.5rem 3rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.copy-instruction-steps li {
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1rem;
  color: #E8E8E8;
}

.copy-instruction-steps li:last-child {
  margin-bottom: 0;
}

.copy-instruction-steps code {
  background: rgba(255, 107, 53, 0.2);
  color: #FF8C42;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 107, 53, 0.3);
  word-break: break-all;
}

.copy-instruction-note {
  background: linear-gradient(135deg, rgba(82, 196, 26, 0.1), rgba(115, 209, 61, 0.1));
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border-left: 4px solid #52C41A;
  font-size: 0.95rem;
  line-height: 1.6;
}

.copy-instruction-note strong {
  color: #73D13D;
}

/* Mobile responsive for instruction banner */
@media (max-width: 768px) {
  .copy-instruction-content {
    max-width: 95%;
    margin: 10px;
  }
  
  .copy-instruction-header {
    padding: 1rem;
  }
  
  .copy-instruction-icon {
    font-size: 2rem;
  }
  
  .copy-instruction-header h4 {
    font-size: 1.1rem;
  }
  
  .copy-instruction-body {
    padding: 1.5rem;
  }
  
  .copy-instruction-main {
    font-size: 1rem;
    padding: 1rem;
  }
  
  .copy-instruction-check {
    font-size: 0.95rem;
  }
  
  .copy-instruction-steps {
    padding: 1rem 1rem 1rem 2rem;
  }
  
  .copy-instruction-steps li {
    font-size: 0.9rem;
  }
  
  .copy-instruction-steps code {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
  }
  
  .copy-instruction-note {
    font-size: 0.85rem;
    padding: 0.8rem 1rem;
  }
}

@media (max-width: 480px) {
  .copy-instruction-header {
    flex-wrap: wrap;
  }
  
  .copy-instruction-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .buy-btn,
  .copy-link-btn {
    width: 100%;
    justify-content: center;
  }
}
