

body {
  margin: 0;
  padding: 0;
}

*, *::before, *::after {
  box-sizing: inherit;
}


code, pre {
  font-family: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  background-color: rgba(94, 82, 64, 0.12);
  border-radius: 6px;
}
code { padding: 1px 4px; }
pre {
  padding: 16px;
  margin: 16px 0;
  overflow: auto;
  border: 1px solid rgba(94, 82, 64, 0.2);
}
pre code { background: none; padding: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  text-decoration: none;
  position: relative;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(33, 128, 141, 0.4);
}
.btn--primary {
  background: #21808D;
  color: #FCFCFD;
}
.btn--primary:hover { background: #1D747F; }
.btn--primary:active { background: #1A6873; }
.btn--secondary {
  background: rgba(94, 82, 64, 0.12);
  color: #13343B;
}
.btn--secondary:hover {
  background: rgba(94, 82, 64, 0.2);
}
.btn--secondary:active {
  background: rgba(94, 82, 64, 0.25);
}
.btn--outline {
  background: transparent;
  border: 1px solid rgba(94, 82, 64, 0.2);
  color: #13343B;
}
.btn--outline:hover {
  background: rgba(94, 82, 64, 0.12);
}
.btn--sm { padding: 4px 12px; font-size: 12px; border-radius: 6px; }
.btn--lg { padding: 10px 20px; font-size: 16px; border-radius: 10px; }
.btn--full-width { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Container Layout */
.container2 {
  width: 100%;
  margin-right: auto; margin-left: auto;
  padding-right: 16px; padding-left: 16px;
  max-width: 1200px;
}

/*Main content */

.main-content {
  margin: 0 auto;
  padding: 0 16px;
  max-width: 1200px;
}

/* Sticker Grid */
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .sticker-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
}

/* Sticker Card */
.sticker-card {
  background-color: #FFFFFD;
  border-radius: 12px;
  border: 1px solid rgba(94, 82, 64, 0.12);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  transition: box-shadow 250ms cubic-bezier(0.16, 1, 0.3, 1), transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.sticker-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.04), 0 4px 6px -2px rgba(0,0,0,0.02);
  transform: translateY(-2px);
}

.sticker-img {
  display: block;
  margin: 0 auto;
  max-width: 160px;   /* Increased from 100px */
  max-height: 160px;  /* Increased from 100px */
  width: 100%;
  height: auto;
  background: transparent;
}
.sticker-display {
  min-height: 180px;  /* Increase if needed to avoid cropping */
  display: flex;
  align-items: center;
  justify-content: center;
}


.sticker-img {
  font-size: 4rem;
  line-height: 1;
}
.sticker-info {
  padding: 16px;
  text-align: center;
  flex-grow: 1;
}
.sticker-name {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 16px 0;
  color: #13343B;
}
.sticker-actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}
.sticker-actions .btn {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
}

/* Load More Button */
.load-more-container {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}
.load-more-container .btn {
  min-width: 160px;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms cubic-bezier(0.16, 1, 0.3, 1), visibility 250ms cubic-bezier(0.16, 1, 0.3, 1);
}
.modal.show {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}
.modal.hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.modal-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.modal-content {
  position: relative;
  background-color: #FFFFFD;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.04), 0 4px 6px -2px rgba(0,0,0,0.02);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}
.modal.show .modal-content { transform: scale(1); }
.modal.hidden .modal-content { transform: scale(0.9); }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(94, 82, 64, 0.12);
}
.modal-header h3 { margin: 0; font-size: 18px; }
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #626C71;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 150ms cubic-bezier(0.16, 1, 0.3, 1);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: #13343B; }
.modal-body {
  padding: 24px;
  text-align: center;
}
.modal-sticker {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background-color: rgba(59, 130, 246, 0.08);
  border-radius: 10px;
  margin-bottom: 24px;
  min-height: 200px;
}
.modal-sticker .sticker-img { font-size: 8rem; }
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.modal-actions .btn { min-width: 120px; }

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Animation for new stickers */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.sticker-card.new {
  animation: fadeInUp 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .container2 { padding: 0 12px; }
 
  .sticker-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .sticker-display { padding: 24px; min-height: 120px; }
  .sticker-img { font-size: 3rem; }
  .modal-content { width: 95%; margin: 16px; }
  .modal-sticker .sticker-img { font-size: 6rem; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; }
}

/* Button loading state */
.btn.loading {
  position: relative;
  color: transparent;
}
.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  top: 50%; left: 50%;
  margin-left: -8px; margin-top: -8
}