@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0f1a0f;
  --bg-secondary: #1b2d1b;
  --bg-surface: #2c4a2c;
  --border-color: #365c36;
  --text-primary: #f8fafc;
  --text-secondary: #cbe1cb;
  --text-muted: #94b894;
  --accent-primary: #10b981;
  --accent-hover: #059669;
  --accent-light: #34d399;
  --accent-dark: #047857;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
  --gradient-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-surface: linear-gradient(135deg, #1b2d1b 0%, #2c4a2c 100%);
  --gradient-hero: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
}

.fade-in {
  opacity: 1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow text selection for specific elements */
input, textarea, .modal-body, .coupon-card-title, .coupon-card-brand {
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

.btn-primary {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
}

.coupon-img {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.coupon-listing:hover .coupon-img {
  transform: scale(1.1) rotate(2deg);
}

.star-rating i {
  transition: all 0.3s ease;
}

.star-rating:hover i {
  transform: scale(1.2);
}

.modal-content {
  transform: scale(1) translateY(0);
}

.ticket-style {
  transition: all 0.3s ease;
}

.ticket-style:hover {
  transform: translateY(-5px);
}

.loading-spinner {
  animation: spin 1s linear infinite;
}

/* Progress bar animation */
.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-surface);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.3s ease-out;
}

/* Header */
.header {
position: sticky;
top: 0;
z-index: 50;
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

/* Hero Section */
.hero {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2310b981' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

/* Buttons */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  gap: 0.5rem;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Cards */
.card {
  background: var(--gradient-surface);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

/* Coupon Cards */
.coupon-card {
  background: var(--gradient-surface);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.coupon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.2);
  border-color: var(--accent-primary);
}

.coupon-card-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  position: relative;
}

.coupon-card-rating {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.coupon-card-rating i {
  color: #fbbf24;
  font-size: 0.6rem;
}

.coupon-card-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.coupon-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.coupon-card-free-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  width: fit-content;
}

.coupon-card-description {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.coupon-card-remaining {
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.coupon-card-remaining i {
  font-size: 0.7rem;
}

.coupon-card-button {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
}

.coupon-card-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.coupon-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Sidebar Styles */
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--gradient-surface);
  border-radius: 1rem;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-item:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateX(6px) scale(1.02);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.sidebar-item img {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.sidebar-item-content {
  flex: 1;
  min-width: 0;
}

.sidebar-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-item-button {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.sidebar-item-button:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Pagination Styles */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  font-weight: 600;
}

.pagination-btn:hover {
  background: var(--accent-primary);
  color: white;
  transform: scale(1.1);
}

.pagination-btn.active {
  background: var(--accent-primary);
  color: white;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.pagination-btn:disabled:hover {
  background: var(--bg-surface);
  color: var(--text-secondary);
  transform: none;
}

/* Search Dropdown Styles */
#searchDropdown {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border-color);
}

.search-dropdown-item:last-child {
  border-bottom: none;
}

.search-dropdown-item:hover {
  background: var(--accent-primary);
  color: white;
}

.search-dropdown-item img {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  object-fit: cover;
  flex-shrink: 0;
}

.search-dropdown-content {
  flex: 1;
  min-width: 0;
}

.search-dropdown-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown-item:hover .search-dropdown-title {
  color: white;
}

.search-dropdown-brand {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown-item:hover .search-dropdown-brand {
  color: rgba(255, 255, 255, 0.8);
}

.search-dropdown-badge {
  background: var(--accent-primary);
  color: white;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  flex-shrink: 0;
}

.search-dropdown-item:hover .search-dropdown-badge {
  background: rgba(255, 255, 255, 0.2);
}

.search-dropdown-empty {
  padding: 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.coupon-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.coupon-brand {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.coupon-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.coupon-meta i {
  color: var(--accent-primary);
}

.coupon-remaining {
  background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  margin-top: 0.5rem;
}

/* Star Rating */
.star-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.star-rating i {
  color: #fbbf24;
  filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #1a1a1a;
  border-radius: 1.5rem;
  max-width: 450px;
  width: calc(100% - 2rem);
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  border: 2px solid #333;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px) {
  .modal-content {
    width: calc(100% - 1rem);
    max-height: calc(100vh - 1rem);
    border-radius: 1rem;
  }

  .modal-header {
    padding: 1rem 1rem 0 1rem;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-body {
    padding: 0 1rem 1rem 1rem;
  }

  .modal-close {
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
  }

  .coupon-visual {
    padding: 1.5rem;
  }

  .coupon-visual-text {
    font-size: 1.1rem;
  }

  .modal-action-button {
    flex-direction: column;
  }

  .modal-action-left,
  .modal-action-right {
    padding: 0.75rem 1rem;
  }
}

.modal.open .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.5rem 1.5rem 0 1.5rem;
  position: relative;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
}

.modal-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.modal-badge {
  background: #333;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.modal-badge i {
  font-size: 0.7rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #10b981;
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: #059669;
  transform: scale(1.1);
}

.modal-body {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.coupon-visual {
  background: #10b981;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  margin: 1rem 0;
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.3);
}

.coupon-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -8px;
  width: 16px;
  height: 16px;
  background: #1a1a1a;
  border-radius: 50%;
  transform: translateY(-50%);
}

.coupon-visual::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -8px;
  width: 16px;
  height: 16px;
  background: #1a1a1a;
  border-radius: 50%;
  transform: translateY(-50%);
}

.coupon-visual-text {
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.usage-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
  color: white;
}

.usage-stats i {
  color: #10b981;
}

.modal-divider {
  height: 1px;
  background: #333;
  margin: 1rem 0;
}

.modal-details h4 {
  color: white;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-details p {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.5;
}

.modal-action-button {
  display: flex;
  margin-top: 1.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.modal-action-left {
  background: #10b981;
  color: white;
  padding: 1rem 1.5rem;
  font-weight: 700;
  flex: 1;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-action-left:hover {
  background: #059669;
}

.modal-action-right {
  background: #333;
  color: white;
  padding: 1rem 1.5rem;
  font-family: monospace;
  font-weight: 600;
  border: none;
  cursor: pointer;
  min-width: 80px;
}

/* Loading States */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--accent-primary);
  border-radius: 50%;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Badge Styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-free {
  background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
  color: white;
}

.badge-hot {
  background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
  color: white;
}

.badge-new {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hover) 100%);
  color: white;
}

/* Status indicators */
.status-remaining {
  background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
  color: white;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .flex.max-w-7xl {
    flex-direction: column;
  }

  aside {
    width: 100%;
    order: 2;
  }

  main {
    order: 1;
  }

  #couponGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0.75rem 0;
  }

  .header .max-w-7xl {
    padding: 0 1rem;
  }

  .header .flex {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .logo {
    text-align: center;
    justify-content: center;
  }

  .header .relative.max-w-md {
    max-width: 100%;
  }

  .header .flex.items-center.gap-4 {
    justify-content: center;
  }

  #couponGrid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .flex.max-w-7xl.mx-auto.px-4.gap-6 {
    padding: 0 1rem;
    gap: 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .coupon-card {
    margin-bottom: 0;
  }

  .coupon-card-image {
    height: 100px;
  }

  .coupon-card-content {
    padding: 0.75rem;
  }

  .coupon-card-title {
    font-size: 0.9rem;
  }

  .coupon-card-description {
    font-size: 0.75rem;
  }

  .coupon-card-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pagination-btn {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
}

@media (max-width: 640px) {
  .header .flex {
    gap: 0.75rem;
  }

  .logo span {
    font-size: 1.5rem;
  }

  .logo i {
    font-size: 1.5rem;
  }

  aside {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .bg-green-900\/30 {
    padding: 0.75rem;
  }

  .coupon-card-content {
    padding: 0.75rem;
  }

  .coupon-card-title {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .coupon-card-brand {
    font-size: 0.7rem;
    margin-bottom: 0.375rem;
  }

  .coupon-card-image {
    height: 120px;
  }

  .sidebar-item {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .sidebar-item img {
    width: 32px;
    height: 32px;
  }

  .sidebar-item-title {
    font-size: 0.8rem;
  }

  .sidebar-item-meta {
    font-size: 0.7rem;
  }

  .sidebar-item-button {
    padding: 0.25rem 0.4rem;
    font-size: 0.7rem;
  }

  .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
  }

  .star-rating {
    font-size: 0.8rem;
  }

  .star-rating span {
    font-size: 0.7rem;
  }

  .badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
  }

  .status-remaining {
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
  }

  .pagination-btn {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .flex.max-w-7xl.mx-auto.px-4.gap-6 {
    padding: 0 0.75rem;
  }

  main h2 {
    font-size: 1.5rem;
  }

  main p {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  #searchDropdown {
    max-height: 60vh;
  }

  .search-dropdown-item {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .search-dropdown-item img {
    width: 32px;
    height: 32px;
  }

  .search-dropdown-title {
    font-size: 0.8rem;
  }

  .search-dropdown-brand {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .header .relative.max-w-md input {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  }

  .header .relative.max-w-md button {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
  }

  .header .relative.max-w-md i {
    left: 0.5rem;
    font-size: 0.8rem;
  }

  #searchDropdown {
    max-height: 50vh;
  }

  .search-dropdown-item {
    padding: 0.375rem;
  }

  .search-dropdown-item img {
    width: 28px;
    height: 28px;
  }

  .search-dropdown-title {
    font-size: 0.75rem;
  }

  .search-dropdown-brand {
    font-size: 0.65rem;
  }

  .search-dropdown-badge {
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
  }

  .coupon-card-image {
    height: 100px;
  }

  .coupon-card-content {
    padding: 0.5rem;
  }

  .coupon-card-title {
    font-size: 0.85rem;
  }

  .sidebar-item {
    padding: 0.375rem;
  }

  .sidebar-item img {
    width: 28px;
    height: 28px;
  }

  .bg-green-900\/30 h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .pagination {
    gap: 0.25rem;
  }

  .pagination-btn {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.ticket-style {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  border: 2px dashed var(--accent-primary);
  border-radius: 0.75rem;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.ticket-style::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-primary);
  border-radius: 0.75rem;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ticket-style:hover::before {
  opacity: 0.1;
}