/* Puzzle Form Styles - Dark Theme */

/* Make puzzles form wider */
.auth-page .auth-card {
  width: 100%;
  max-width: 800px; /* Increased from default 420px */
}

/* Fee Calculator */
.fee-calculator {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1rem 0;
}

.fee-calculator h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.fee-calculator p {
  color: #94a3b8;
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
}

.fee-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.fee-row.total {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  font-weight: 600;
  color: #fff;
}

.fee-row.balance {
  color: #86efac;
  font-weight: 500;
}

/* Dark theme form styling for puzzles page */
.auth-page .form-group textarea {
  background: rgba(15, 23, 42, 0.6) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  resize: vertical;
  min-height: 100px;
  width: 100%;
}

.auth-page .form-group textarea:focus {
  outline: none;
  border-color: #f7931a;
  background: rgba(15, 23, 42, 0.8) !important;
  box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.2);
}

.auth-page .form-group textarea::placeholder {
  color: #64748b !important;
}

.auth-page .form-group p {
  color: #94a3b8 !important;
  font-size: 0.875rem;
  margin: 0.25rem 0 0 0;
}

.auth-page .form-group input[type="text"],
.auth-page .form-group input[type="email"],
.auth-page .form-group input[type="password"],
.auth-page .form-group input[type="number"] {
  background: rgba(15, 23, 42, 0.6) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-page .form-group input[type="text"]:focus,
.auth-page .form-group input[type="email"]:focus,
.auth-page .form-group input[type="password"]:focus,
.auth-page .form-group input[type="number"]:focus {
  background: rgba(15, 23, 42, 0.8) !important;
  border-color: #f7931a;
  box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.2);
}

.auth-page .form-group input::placeholder {
  color: #64748b !important;
}

/* Image Upload Zone */
.upload-zone {
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  min-height: 180px;
}

.upload-zone:hover {
  border-color: rgba(247, 147, 26, 0.5);
  background: rgba(15, 23, 42, 0.6);
}

.upload-zone--dragover {
  border-color: #f7931a;
  background: rgba(247, 147, 26, 0.1);
  transform: scale(1.01);
}

.upload-zone__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 0.75rem;
  min-height: 180px;
}

.upload-zone__icon {
  color: #64748b;
  transition: color 0.3s ease;
}

.upload-zone:hover .upload-zone__icon {
  color: #f7931a;
}

.upload-zone--dragover .upload-zone__icon {
  color: #f7931a;
}

.upload-zone__text {
  color: #cbd5e1;
  font-size: 1rem;
  font-weight: 500;
}

.upload-zone__hint {
  color: #64748b;
  font-size: 0.875rem;
}

.upload-zone__input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.upload-zone__preview {
  position: relative;
  width: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
}

.upload-zone__preview img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
}

.upload-zone__remove {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.upload-zone__remove:hover {
  background: #ef4444;
  transform: scale(1.1);
}

.hidden {
  display: none !important;
}

/* Puzzles Index Page Styles */
.puzzles-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
}

.hero-section {
  padding: 3rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.08) 0%, rgba(247, 147, 26, 0.03) 100%);
  border-bottom: 1px solid rgba(247, 147, 26, 0.15);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #f7931a, #ffb84d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

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

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #f7931a;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

.puzzle-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(247, 147, 26, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.puzzle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg, rgba(247, 147, 26, 0.03), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.puzzle-card:hover::before {
  opacity: 1;
}

.puzzle-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(247, 147, 26, 0.2), 0 12px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(247, 147, 26, 0.4);
}

.puzzle-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.puzzle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.95);
}

.puzzle-card:hover .puzzle-img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.puzzle-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.puzzle-badge {
  background: linear-gradient(135deg, #f7931a 0%, #ffab40 100%);
  color: #0f172a;
  padding: 0.375rem 1rem;
  border-radius: 24px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(247, 147, 26, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(247, 147, 26, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2); }
  50% { box-shadow: 0 6px 24px rgba(247, 147, 26, 0.6), 0 3px 12px rgba(0, 0, 0, 0.3); }
}

.puzzle-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(247, 147, 26, 0.15);
  position: relative;
  overflow: hidden;
}

.puzzle-placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(247, 147, 26, 0.05) 0%, transparent 70%);
  animation: rotate-gradient 8s linear infinite;
}

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

.placeholder-icon {
  font-size: 3.5rem;
  opacity: 0.4;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.puzzle-content {
  padding: 1.75rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.puzzle-status {
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.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-badge.active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.solved {
  background: rgba(147, 51, 234, 0.15);
  color: #a855f7;
  border: 1px solid rgba(147, 51, 234, 0.3);
}

.puzzle-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0;
  flex: 1;
  line-height: 1.3;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.puzzle-card:hover .puzzle-title {
  color: #ffab40;
}

.puzzle-description {
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.puzzle-meta {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.meta-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  opacity: 0.8;
  color: #f7931a;
}

.meta-content {
  flex: 1;
}

.meta-label {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.85rem;
}

.meta-value.address {
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 0.8rem;
}

.meta-value.user-profile-link {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.meta-value.user-profile-link:hover {
  color: #f7931a;
}

.meta-content .user-level-badge {
  vertical-align: middle;
  margin-left: 0.35rem;
}

.meta-icon--avatar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.meta-icon-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(247, 147, 26, 0.3);
}

.meta-icon-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid rgba(247, 147, 26, 0.3);
  color: #f7931a;
  font-weight: 600;
  font-size: 0.6rem;
}

.puzzle-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: auto;
}

.puzzle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.puzzle-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.puzzle-btn:hover::before {
  width: 300px;
  height: 300px;
}

.puzzle-btn.primary {
  background: linear-gradient(135deg, #f7931a, #ffab40);
  color: #0f172a;
  flex: 1;
  box-shadow: 0 4px 16px rgba(247, 147, 26, 0.3);
}

.puzzle-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(247, 147, 26, 0.4);
}

.puzzle-btn.secondary {
  background: transparent;
  color: #f7931a;
  border: 1px solid #f7931a;
}

.puzzle-btn.secondary:hover {
  background: rgba(247, 147, 26, 0.1);
}

.puzzle-btn.secondary.success {
  color: #22c55e;
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.btn-icon {
  font-size: 0.85rem;
}

.puzzle-btn.large {
  padding: 0.875rem 1.75rem;
  font-size: 0.95rem;
}

/* Puzzles Footer Section */
.puzzles-footer {
  margin-top: 4rem;
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.puzzles-footer p {
  font-size: 1.125rem;
  color: #94a3b8;
  font-weight: 500;
  margin: 0 0 1.5rem 0;
}

.puzzles-footer .puzzle-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: none;
}

.puzzles-footer .puzzle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -1px rgba(0, 0, 0, 0.2);
}

/* Puzzles Index Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 2rem;
  }

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

  .puzzles-container {
    padding: 2.5rem 1rem;
  }

  .puzzle-card {
    border-radius: 16px;
  }

  .puzzle-image {
    height: 180px;
  }

  .puzzle-content {
    padding: 1.5rem;
  }

  .puzzle-title {
    font-size: 1.2rem;
  }

  .puzzle-description {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .puzzle-actions {
    flex-direction: column;
    margin-top: 1.25rem;
  }

  .puzzle-btn {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }
}

/* ===========================================
   PUZZLE DETAIL PAGE - Mobile First
   =========================================== */

.puzzle-detail {
  min-height: 100vh;
  background: #0f172a;
  color: #fff;
  padding-bottom: 2rem;
  position: relative;
  overflow-x: hidden;
}

/* Animated Background Gradient */
.puzzle-detail__bg-gradient {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(247, 147, 26, 0.15) 0%,
    transparent 50%
  ),
  radial-gradient(
    circle at 80% 80%,
    rgba(59, 130, 246, 0.1) 0%,
    transparent 50%
  ),
  radial-gradient(
    circle at 40% 20%,
    rgba(168, 85, 247, 0.08) 0%,
    transparent 50%
  );
  animation: gradientShift 20s ease infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gradientShift {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(-5%, -5%) rotate(120deg);
  }
  66% {
    transform: translate(5%, 5%) rotate(240deg);
  }
}

/* Floating Particles */
.puzzle-detail__bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.puzzle-detail__bg-particles::before,
.puzzle-detail__bg-particles::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  opacity: 0.03;
  animation: floatParticle 25s ease-in-out infinite;
}

.puzzle-detail__bg-particles::before {
  background: radial-gradient(circle, #f7931a 0%, transparent 70%);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.puzzle-detail__bg-particles::after {
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  bottom: 20%;
  right: 10%;
  animation-delay: 5s;
}

@keyframes floatParticle {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

/* Header / Back button */
.puzzle-detail__header {
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.puzzle-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.puzzle-detail__back::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.1), rgba(247, 147, 26, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.puzzle-detail__back:hover {
  color: #f7931a;
  transform: translateX(-4px);
}

.puzzle-detail__back:hover::before {
  opacity: 1;
}

.puzzle-detail__back svg {
  position: relative;
  z-index: 1;
}

.puzzle-detail__back span {
  position: relative;
  z-index: 1;
}

.puzzle-detail__edit {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.puzzle-detail__edit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(247, 147, 26, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.puzzle-detail__edit:hover {
  color: #f7931a;
  background: rgba(247, 147, 26, 0.1);
  border-color: rgba(247, 147, 26, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(247, 147, 26, 0.2);
}

.puzzle-detail__edit:hover::before {
  width: 200px;
  height: 200px;
}

/* Info Section */
.puzzle-detail__info {
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.puzzle-detail__status {
  margin-bottom: 0.5rem;
  animation: fadeInDown 0.6s ease;
}

.puzzle-detail__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.75rem;
  color: #fff;
  background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInDown 0.6s ease 0.1s backwards;
}

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

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

.puzzle-detail__meta {
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease 0.15s backwards;
}

/* Meta Card - Modern Creator Info */
.meta-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.meta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(247, 147, 26, 0.6) 50%,
    transparent 100%
  );
}

.meta-card:hover {
  border-color: rgba(247, 147, 26, 0.4);
  box-shadow: 0 12px 48px rgba(247, 147, 26, 0.15);
  transform: translateY(-2px);
}

.meta-card__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.meta-card__avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.meta-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(247, 147, 26, 0.4);
  box-shadow: 0 4px 16px rgba(247, 147, 26, 0.3);
  transition: all 0.3s ease;
}

.meta-card__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.2), rgba(232, 133, 15, 0.2));
  backdrop-filter: blur(10px);
  color: #f7931a;
  font-weight: 700;
  font-size: 1.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.meta-card__link:hover .meta-card__avatar {
  transform: scale(1.05);
  border-color: rgba(247, 147, 26, 0.6);
  box-shadow: 0 6px 24px rgba(247, 147, 26, 0.5);
}

.meta-card__status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: 2px solid rgba(15, 23, 42, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
  }
  50% {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.9);
  }
}

.meta-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.meta-card__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}

.meta-card__name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.meta-card__name .user-level-badge {
  -webkit-text-fill-color: initial;
  background: none;
}

.meta-card__link:hover .meta-card__name {
  background: linear-gradient(135deg, #f7931a 0%, #ffab40 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.meta-card__date {
  font-size: 0.8125rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.125rem;
}

.meta-card__date svg {
  flex-shrink: 0;
  opacity: 0.6;
}

/* Puzzle Image - Main Display */
.puzzle-detail__image {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease 0.4s backwards;
}

.puzzle-detail__image .puzzle-image {
  border-radius: 20px;
  overflow: hidden;
  max-height: 400px;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: all 0.4s ease;
}

.puzzle-detail__image .puzzle-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
  pointer-events: none;
}

.puzzle-detail__image .puzzle-image:hover {
  transform: scale(1.02);
  border-color: rgba(247, 147, 26, 0.3);
  box-shadow: 
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(247, 147, 26, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.puzzle-detail__image .puzzle-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
  transition: transform 0.4s ease;
}

.puzzle-detail__image .puzzle-image:hover img {
  transform: scale(1.05);
}

/* Prize Box */
.puzzle-detail__prize {
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease 0.2s backwards;
}

.prize-box {
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.95) 0%, rgba(232, 133, 15, 0.95) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(247, 147, 26, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 20px 60px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: prizeFloat 3s ease-in-out infinite;
}

.prize-box:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 12px 48px rgba(247, 147, 26, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 30px 80px rgba(0, 0, 0, 0.4);
}

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

/* Glowing effect behind prize box */
.prize-box__glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(247, 147, 26, 0.6) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.prize-box__icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  animation: iconBounce 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes iconBounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) rotate(-5deg);
  }
  75% {
    transform: translateY(-4px) rotate(5deg);
  }
}

.prize-box__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.prize-box__amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  font-family: 'Monaco', 'Menlo', monospace;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

/* Shimmer effect */
.prize-box__shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

/* Address Box */
.puzzle-detail__address {
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease 0.3s backwards;
}

.address-box {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.address-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.address-box:hover {
  border-color: rgba(247, 147, 26, 0.3);
  box-shadow: 0 8px 32px rgba(247, 147, 26, 0.1);
}

.address-box__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.address-box__label::before {
  content: '🔑';
  font-size: 1rem;
}

.address-box__code {
  display: block;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.75rem;
  color: #e2e8f0;
  word-break: break-all;
  line-height: 1.6;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.address-box__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* CTA Section */
.puzzle-detail__cta {
  margin-bottom: 1.5rem;
}

.solved-banner {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  color: #93c5fd;
}

.solved-banner small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 0.875rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 24px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

.badge--active {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.5);
  box-shadow: 
    0 4px 12px rgba(34, 197, 94, 0.3),
    0 0 20px rgba(34, 197, 94, 0.2);
  animation: pulseGreen 2s ease-in-out infinite;
}

@keyframes pulseGreen {
  0%, 100% {
    box-shadow: 
      0 4px 12px rgba(34, 197, 94, 0.3),
      0 0 20px rgba(34, 197, 94, 0.2);
  }
  50% {
    box-shadow: 
      0 4px 16px rgba(34, 197, 94, 0.5),
      0 0 30px rgba(34, 197, 94, 0.4);
  }
}

.badge--solved {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 
    0 4px 12px rgba(59, 130, 246, 0.3),
    0 0 20px rgba(59, 130, 246, 0.2);
}

.badge--success {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.badge--price {
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.95), rgba(255, 171, 64, 0.95));
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 4px 12px rgba(247, 147, 26, 0.4),
    0 0 20px rgba(247, 147, 26, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn--primary {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  box-shadow: 
    0 4px 16px rgba(34, 197, 94, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  z-index: 1;
}

.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 24px rgba(34, 197, 94, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn--primary:hover::after {
  opacity: 1;
}

.btn--primary:active {
  transform: translateY(-1px);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(247, 147, 26, 0.5);
  color: #f7931a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(247, 147, 26, 0.2);
}

.btn--outline:active {
  transform: translateY(0);
}

.btn--small {
  padding: 0.5rem 0.875rem;
  font-size: 0.8rem;
  border-radius: 10px;
}

.btn--full {
  width: 100%;
}

.btn .copy-text-copied {
  display: none;
}

.btn.copied .copy-text {
  display: none;
}

.btn.copied .copy-text-copied {
  display: inline;
}

/* Tabs Section */
.puzzle-detail__tabs {
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.tabs-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem;
  margin-bottom: 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tabs-nav__btn {
  flex: 0 0 auto;
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.tabs-nav__btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(247, 147, 26, 0.1), rgba(59, 130, 246, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tabs-nav__btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transform: translateY(-2px);
}

.tabs-nav__btn:hover::before {
  opacity: 1;
}

.tabs-nav__btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: rgba(59, 130, 246, 0.5);
  color: #fff;
  box-shadow: 
    0 4px 16px rgba(59, 130, 246, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transform: translateY(-2px);
}

.tabs-nav__btn.active::before {
  opacity: 0;
}

/* Tab Content */
.tabs-content__panel {
  display: none;
}

.tabs-content__panel.active {
  display: block;
}

/* Tab Loading Animation */
.tabs-content {
  position: relative;
  min-height: 100px;
}

.tabs-content turbo-frame {
  display: block;
  position: relative;
  min-height: 100px;
}

.tabs-content turbo-frame[busy]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10;
  animation: fadeIn 0.15s ease;
}

.tabs-content turbo-frame[busy]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #3b82f6;
  border-radius: 50%;
  z-index: 11;
  animation: spin 0.8s linear infinite;
}

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

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

/* Puzzle Image */
.puzzle-image {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
}

.puzzle-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Content Sections */
.content-section {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease backwards;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(247, 147, 26, 0.5) 50%,
    transparent 100%
  );
}

.content-section:hover {
  border-color: rgba(247, 147, 26, 0.3);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.content-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.25rem;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: 0.75rem;
}

.content-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #f7931a 0%, transparent 100%);
  border-radius: 2px;
}

.content-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.content-section__header h2 {
  margin-bottom: 0;
}

.content-section__header .btn {
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.content-section__body {
  color: #cbd5e1;
  line-height: 1.7;
  font-size: 0.9375rem;
}

.content-section__body p {
  margin: 0 0 1rem;
}

.content-section__body p:last-child {
  margin-bottom: 0;
}

/* Steps List */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.steps-list li {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 1.25rem;
  counter-increment: step;
}

.steps-list li:last-child {
  padding-bottom: 0;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #f7931a, #ffab40);
  color: #0f172a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.steps-list li strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.steps-list li p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: #64748b;
}

.empty-state p {
  margin: 0;
}

/* Hints List */
.hints-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hint-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.hint-item--unlocked {
  border-color: rgba(34, 197, 94, 0.3);
}

.hint-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
}

.hint-item__number {
  font-weight: 600;
  color: #fff;
}

.hint-item__body {
  padding: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.hint-item__body p {
  margin: 0 0 0.75rem;
}

.hint-item__body p:last-child {
  margin-bottom: 0;
}

.hint-item__locked {
  text-align: center;
  padding: 1rem;
  color: #64748b;
}

.hint-item__locked span {
  display: block;
  margin-bottom: 0.75rem;
}

/* ===========================================
   TABLET+ STYLES (768px+)
   =========================================== */

@media (min-width: 768px) {
  .puzzle-detail__header {
    padding: 1.5rem 2rem;
  }

  .puzzle-detail__info {
    padding: 2rem 2rem;
  }

  .puzzle-detail__title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }

  .meta-card {
    padding: 1.25rem 1.5rem;
  }

  .meta-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  .meta-card__avatar--placeholder {
    font-size: 1.5rem;
  }

  .meta-card__status {
    width: 16px;
    height: 16px;
  }

  .meta-card__label {
    font-size: 0.75rem;
  }

  .meta-card__name {
    font-size: 1.125rem;
  }

  .meta-card__date {
    font-size: 0.875rem;
  }

  .prize-box {
    padding: 2rem 1.75rem;
  }

  .prize-box__icon {
    font-size: 3rem;
  }

  .prize-box__amount {
    font-size: 2rem;
  }

  .address-box {
    padding: 1.5rem;
  }

  .address-box__code {
    font-size: 0.8125rem;
    padding: 1rem;
  }

  .balance-box {
    padding: 1.5rem;
  }

  .puzzle-detail__tabs {
    padding: 0 2rem;
  }

  .tabs-nav {
    padding: 0.75rem;
  }

  .tabs-nav__btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
  }

  .content-section {
    padding: 2rem;
  }

  .content-section h2 {
    font-size: 1.375rem;
  }
}

/* ===========================================
   DESKTOP STYLES (1024px+)
   =========================================== */

@media (min-width: 1024px) {
  .puzzle-detail {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .puzzle-detail__header {
    grid-column: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 2rem;
  }

  .puzzle-detail__info {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    grid-template-rows: auto auto auto auto auto;
    gap: 0 2rem;
    align-items: start;
  }

  .puzzle-detail__status {
    grid-column: 1;
    grid-row: 1;
  }

  .puzzle-detail__title {
    grid-column: 1;
    grid-row: 2;
    font-size: 2.25rem;
  }

  .puzzle-detail__meta {
    grid-column: 1;
    grid-row: 3;
  }

  .puzzle-detail__image {
    grid-column: 1;
    grid-row: 4;
    margin-bottom: 1rem;
  }

  .puzzle-detail__prize {
    grid-column: 2;
    grid-row: 1 / 3;
    margin-bottom: 1rem;
  }

  .prize-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
  }

  .prize-box__amount {
    font-size: 1.75rem;
  }

  .puzzle-detail__address {
    grid-column: 2;
    grid-row: 3;
  }

  .puzzle-detail__balance {
    grid-column: 2;
    grid-row: 4;
  }

  .puzzle-detail__cta {
    grid-column: 1;
    grid-row: 5;
    align-self: start;
    max-width: 300px;
  }

  .puzzle-detail__tabs {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem 2rem;
  }

  .tabs-nav {
    gap: 0.5rem;
  }

  .tabs-nav__btn {
    flex: 0 0 auto;
  }

  .content-section {
    padding: 2rem;
  }
}

/* ===========================================
   RATINGS SECTION
   =========================================== */

.ratings-section {
  padding: 1rem 0;
}

.ratings-summary {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 12px;
  border: 1px solid rgba(247, 147, 26, 0.1);
  color: #e2e8f0;
}

.rating-overview {
  text-align: center;
}

.rating-average {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.rating-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #f7931a;
}

.rating-stars {
  display: flex;
  gap: 0.25rem;
  font-size: 1.5rem;
}

.star.filled {
  color: #f7931a;
}

.star.empty {
  color: #475569;
}

.rating-count {
  color: #94a3b8;
  font-size: 0.9rem;
}

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

.rating-item {
  padding: 1rem;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid rgba(247, 147, 26, 0.1);
  border-radius: 12px;
  color: #e2e8f0;
}

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

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

.rating-stars-small {
  display: flex;
  gap: 0.125rem;
  font-size: 1rem;
}

.star-small.filled {
  color: #f7931a;
}

.star-small.empty {
  color: #475569;
}

.rating-date {
  color: #94a3b8;
  font-size: 0.85rem;
  white-space: nowrap;
}

.rating-comment {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  line-height: 1.5;
  color: #cbd5e1;
}

.rating-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rating-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(247, 147, 26, 0.2);
}

.rating-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 2px solid rgba(247, 147, 26, 0.2);
  color: #f7931a;
  font-weight: 600;
  font-size: 1rem;
}

.empty-state__hint {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Puzzle detail page avatar styles */
.puzzle-detail__creator-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.puzzle-detail__creator-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(247, 147, 26, 0.3);
}

.puzzle-detail__creator-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid rgba(247, 147, 26, 0.3);
  color: #f7931a;
  font-weight: 600;
  font-size: 0.7rem;
}

/* Meta avatar styles for solved page */
.meta-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(247, 147, 26, 0.2);
}

.meta-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid rgba(247, 147, 26, 0.2);
  color: #f7931a;
  font-weight: 600;
  font-size: 0.6rem;
}

/* ===========================================
   IMAGE MODAL / LIGHTBOX
   =========================================== */

.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal.active {
  opacity: 1;
  visibility: visible;
}

.image-modal__content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal__img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.image-modal.active .image-modal__img {
  transform: scale(1);
}

.image-modal__close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.image-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Clickable puzzle image styles */
.puzzle-image--clickable {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.puzzle-image--clickable:hover {
  transform: scale(1.01);
}

.puzzle-image--clickable:focus {
  outline: 2px solid #f7931a;
  outline-offset: 2px;
}

.puzzle-image__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.puzzle-image--clickable:hover .puzzle-image__overlay,
.puzzle-image--clickable:focus .puzzle-image__overlay {
  opacity: 1;
}

.puzzle-image__overlay svg {
  width: 32px;
  height: 32px;
}

.puzzle-image__overlay span {
  font-size: 0.875rem;
  font-weight: 500;
}

/* ===========================================
   SOLUTIONS SECTION
   =========================================== */

.solutions-section {
  padding: 1rem 0;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1.5rem;
}

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

.solution-card {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid rgba(247, 147, 26, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.solution-card:hover {
  border-color: rgba(247, 147, 26, 0.2);
  transform: translateY(-1px);
}

.solution-header {
  padding: 1rem 1.25rem 0.75rem;
  background: rgba(0, 0, 0, 0.2);
}

.solution-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.solution-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(247, 147, 26, 0.2);
}

.solution-author-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 2px solid rgba(247, 147, 26, 0.2);
  color: #f7931a;
  font-weight: 600;
  font-size: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.solution-author-info {
  flex: 1;
}

.solution-author-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.9375rem;
}

.solution-date {
  color: #64748b;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.solution-content {
  padding: 1rem 1.25rem 1.25rem;
}

.solution-content p {
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
  font-size: 0.9375rem;
}

.empty-state__subtext {
  color: #64748b;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Responsive adjustments for solutions */
@media (min-width: 768px) {
  .solution-header {
    padding: 1rem 1.5rem 0.75rem;
  }

  .solution-content {
    padding: 1rem 1.5rem 1.5rem;
  }

  .solution-author-avatar,
  .solution-author-avatar-placeholder {
    width: 44px;
    height: 44px;
  }

  .solution-author-name {
    font-size: 1rem;
  }

  .solution-content p {
    font-size: 1rem;
  }
}

/* Mobile adjustments for modal */
@media (max-width: 768px) {
  .image-modal {
    padding: 0.5rem;
  }

  .image-modal__close {
    top: 0.5rem;
    right: 0.5rem;
    position: fixed;
    z-index: 1001;
  }

  .image-modal__content {
    max-width: 100vw;
    max-height: 100vh;
  }

  .image-modal__img {
    max-height: 85vh;
    border-radius: 4px;
  }
}

/* Rating Form Styles */
.rating-form-section {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(247, 147, 26, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.rating-form-section h3 {
  color: #f7931a;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.rating-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.rating-input-group label {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.9rem;
}

.star-rating-input {
  display: flex;
  gap: 0.25rem;
}

.star-input {
  font-size: 2rem;
  color: #475569;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.star-input:hover,
.star-input.selected {
  color: #f7931a;
}

.star-input:hover {
  transform: scale(1.1);
}

.star-rating-input:hover .star-input {
  color: #475569;
}

.star-rating-input:hover .star-input:hover,
.star-rating-input:hover .star-input:hover ~ .star-input {
  color: #475569;
}

.star-rating-input .star-input:hover,
.star-rating-input .star-input:hover ~ .star-input {
  color: #475569;
}

.star-rating-input:hover .star-input:hover,
.star-rating-input:hover .star-input:has(~ .star-input:hover) {
  color: #f7931a;
}

/* Simpler hover logic - highlight up to hovered star */
.star-rating-input:hover .star-input {
  color: #475569;
}

.star-rating-input .star-input:hover ~ .star-input {
  color: #475569 !important;
}

.star-rating-input .star-input:hover,
.star-rating-input .star-input:has(~ .star-input:hover) {
  color: #f7931a !important;
}

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

.rating-form .form-group label {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.9rem;
}

.rating-form .form-group textarea {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(247, 147, 26, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 80px;
}

.rating-form .form-group textarea:focus {
  outline: none;
  border-color: #f7931a;
  box-shadow: 0 0 0 2px rgba(247, 147, 26, 0.1);
}

.rating-form .form-group textarea::placeholder {
  color: #64748b;
}

.rating-form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rating-form-actions .btn {
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.rating-form-actions .btn-primary {
  background: linear-gradient(135deg, #f7931a, #e6840b);
  color: #0f172a;
}

.rating-form-actions .btn-primary:hover {
  background: linear-gradient(135deg, #e6840b, #d4750a);
  transform: translateY(-1px);
}

.rating-form-actions .btn-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.rating-form-actions .btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* ===========================================
   HINT FORM SECTION (Owner)
   =========================================== */

.hint-form-section {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(247, 147, 26, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.hint-form-section h3 {
  color: #f7931a;
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.hint-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.hint-form .form-group label {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.9rem;
}

.hint-form .form-group textarea,
.hint-form .form-group input[type="number"] {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(247, 147, 26, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.95rem;
}

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

.hint-form .form-group input[type="number"] {
  max-width: 150px;
}

.hint-form .form-group textarea:focus,
.hint-form .form-group input[type="number"]:focus {
  outline: none;
  border-color: #f7931a;
  box-shadow: 0 0 0 2px rgba(247, 147, 26, 0.1);
}

.hint-form .form-group textarea::placeholder,
.hint-form .form-group input[type="number"]::placeholder {
  color: #64748b;
}

.hint-form-actions {
  display: flex;
  gap: 0.75rem;
}

.hint-form-actions .btn-primary {
  background: linear-gradient(135deg, #f7931a, #e6840b);
  color: #0f172a;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.hint-form-actions .btn-primary:hover {
  background: linear-gradient(135deg, #e6840b, #d4750a);
  transform: translateY(-1px);
}

/* Owner badge style */
.badge--owner {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Hint item footer for delete button */
.hint-item__footer {
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: flex-end;
}

.btn--danger {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn--danger:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* Hint badges container */
.hint-item__badges {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ===========================================
   COMMENTS SECTION
   =========================================== */

.comments-section {
  padding: 1rem 0;
}

/* Comment Form Section */
.comment-form-section {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.comment-form-section h3 {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.comment-form .form-group textarea {
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 100px;
  transition: all 0.2s ease;
  width: 100%;
}

.comment-form .form-group textarea:focus {
  outline: none;
  border-color: #f7931a;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.2);
}

.comment-form .form-group textarea::placeholder {
  color: #64748b;
}

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

.comment-form-actions .btn-primary {
  background: linear-gradient(135deg, #f7931a, #ffab40);
  color: #0f172a;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.comment-form-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(247, 147, 26, 0.3);
}

/* Comments List */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comment-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.comment-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Comment Header */
.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.comment-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-user-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(247, 147, 26, 0.2);
}

.comment-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 2px solid rgba(247, 147, 26, 0.2);
  color: #f7931a;
  font-weight: 600;
  font-size: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.comment-user-info strong {
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
}

.comment-date {
  color: #64748b;
  font-size: 0.8rem;
  white-space: nowrap;
}

.comment-edited-label {
  color: #94a3b8;
  font-size: 0.75rem;
  font-style: italic;
  margin-left: 0.25rem;
}

/* Comment Content */
.comment-content {
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.comment-content p {
  margin: 0;
}

/* Comment Replies */
.comment-replies {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reply-item {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem;
  margin-left: 1rem;
  position: relative;
}

.reply-item::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 1.5rem;
  width: 0.75rem;
  height: 0.75rem;
  background: rgba(247, 147, 26, 0.3);
  border-radius: 50%;
}

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

.reply-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reply-user-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.reply-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(247, 147, 26, 0.2);
}

.reply-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid rgba(247, 147, 26, 0.2);
  color: #f7931a;
  font-weight: 600;
  font-size: 0.875rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.reply-user-info strong {
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
}

.reply-date {
  color: #64748b;
  font-size: 0.75rem;
  white-space: nowrap;
}

.reply-content {
  color: #cbd5e1;
  line-height: 1.5;
}

.reply-content p {
  margin: 0;
}

/* Comment Actions (Reply Form) */
.comment-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.reply-toggle-btn {
  background: transparent;
  color: #f7931a;
  border: 1px solid #f7931a;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.reply-toggle-btn:hover {
  background: rgba(247, 147, 26, 0.1);
  transform: translateY(-1px);
}

.reply-toggle-btn.btn-cancel {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: #ef4444;
}

.reply-toggle-btn.btn-cancel:hover {
  background: rgba(239, 68, 68, 0.3);
}

.hidden {
  display: none !important;
}

.reply-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

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

.reply-form-group textarea {
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4;
  resize: vertical;
  min-height: 60px;
  transition: all 0.2s ease;
  width: 100%;
}

.reply-form-group textarea:focus {
  outline: none;
  border-color: #f7931a;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 2px rgba(247, 147, 26, 0.2);
}

.reply-form-group textarea::placeholder {
  color: #64748b;
}

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

.reply-form-actions .btn-small {
  background: transparent;
  color: #f7931a;
  border: 1px solid #f7931a;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reply-form-actions .btn-small:hover {
  background: rgba(247, 147, 26, 0.1);
  transform: translateY(-1px);
}

/* Responsive adjustments for comments */
@media (min-width: 768px) {
  .comment-form-section {
    padding: 2rem;
  }

  .comment-item {
    padding: 2rem;
  }

  .comment-avatar,
  .comment-avatar-placeholder {
    width: 44px;
    height: 44px;
  }

  .reply-avatar,
  .reply-avatar-placeholder {
    width: 36px;
    height: 36px;
  }
}

/* ===========================================
   SOLUTION SUBMISSION MODAL
   =========================================== */

.solution-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.solution-modal.active {
  opacity: 1;
  visibility: visible;
}

.solution-modal__content {
  position: relative;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid rgba(247, 147, 26, 0.2);
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.solution-modal.active .solution-modal__content {
  transform: scale(1);
}

.solution-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.solution-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.solution-modal__header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.solution-modal__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
}

.solution-modal__description {
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.solution-modal__warning {
  color: #f59e0b;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
  padding: 0.75rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
}

.solution-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
}

.form-input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  font-family: 'Monaco', 'Menlo', monospace;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #f7931a;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.2);
}

.form-input::placeholder {
  color: #64748b;
}

.solution-modal__actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* Balance Box */
.puzzle-detail__balance {
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease 0.5s backwards;
}

.balance-box {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.balance-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.balance-box:hover {
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.15);
}

.balance-box__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.balance-box__label::before {
  content: '💰';
  font-size: 1rem;
}

.balance-box__amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  font-family: 'Monaco', 'Menlo', monospace;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.balance-box__transactions {
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1.5;
}

.balance-loading {
  color: #64748b;
  font-style: italic;
  animation: pulse 2s ease-in-out infinite;
}

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

.balance-amount {
  color: #fff;
}

.balance-amount.has-balance {
  color: #22c55e;
  text-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
  animation: balanceGlow 2s ease-in-out infinite;
}

@keyframes balanceGlow {
  0%, 100% {
    text-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.8);
  }
}

.balance-error {
  color: #ef4444;
  font-style: italic;
}

/* Responsive styles for solution modal */
@media (max-width: 768px) {
  .solution-modal__content {
    padding: 1.5rem;
    margin: 1rem;
  }

  .solution-modal__title {
    font-size: 1.25rem;
  }

  .solution-modal__actions {
    flex-direction: column-reverse;
  }

  .solution-modal__actions .btn {
    width: 100%;
  }
}

/* ===========================================
   HINT VOTING
   =========================================== */

.hint-vote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hint-vote__buttons {
  display: flex;
  gap: 0.5rem;
}

.hint-vote__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.6);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hint-vote__btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hint-vote__btn--like:hover,
.hint-vote__btn--like.hint-vote__btn--active {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.hint-vote__btn--dislike:hover,
.hint-vote__btn--dislike.hint-vote__btn--active {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.hint-vote__counts {
  display: flex;
  gap: 1rem;
}

.hint-vote__counts--locked {
  margin-top: 0.75rem;
  justify-content: center;
}

.hint-vote__count {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: #64748b;
}

.hint-vote__count--like {
  color: #22c55e;
}

.hint-vote__count--dislike {
  color: #ef4444;
}
