/* ==========================================================================
   NEWBIE GUIDE MODAL (HƯỚNG DẪN TÂN THỦ)
   Phong cách Tiên Hiệp cao cấp: Dark mode, viền vàng kim, responsive PC & Mobile
   ========================================================================== */

.newbie-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 16px;
  animation: newbieFadeIn 0.25s ease-out;
  pointer-events: auto !important;
}

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

.newbie-guide-panel {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: min(92%, 550px);
  background: linear-gradient(145deg, rgba(22, 27, 46, 0.96) 0%, rgba(13, 17, 30, 0.98) 100%);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 25px rgba(234, 179, 8, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #e2e8f0;
  font-family: var(--font-body, 'Nunito', sans-serif);
}

/* Header */
.newbie-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-bottom: 1px solid rgba(234, 179, 8, 0.25);
}

.newbie-guide-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.newbie-guide-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fef08a;
  background: rgba(234, 179, 8, 0.18);
  border: 1px solid rgba(234, 179, 8, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
}

.newbie-guide-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #fde047;
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px rgba(253, 224, 71, 0.3);
}

.newbie-guide-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
  line-height: 1;
}

.newbie-guide-close-btn:hover {
  color: #f87171;
  background: rgba(248, 113, 113, 0.15);
}

/* Slide Container */
.newbie-guide-slides-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  min-height: 200px;
  max-height: 440px;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.newbie-guide-panel,
.newbie-guide-slides-container,
.newbie-guide-slides-container * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.newbie-guide-slides-container::-webkit-scrollbar,
.newbie-guide-panel::-webkit-scrollbar,
.newbie-guide-overlay::-webkit-scrollbar,
.newbie-guide-slides-container *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.newbie-guide-slides-container::-webkit-scrollbar-thumb,
.newbie-guide-panel::-webkit-scrollbar-thumb,
.newbie-guide-overlay::-webkit-scrollbar-thumb,
.newbie-guide-slides-container *::-webkit-scrollbar-thumb,
.newbie-guide-slides-container::-webkit-scrollbar-track,
.newbie-guide-panel::-webkit-scrollbar-track,
.newbie-guide-overlay::-webkit-scrollbar-track,
.newbie-guide-slides-container *::-webkit-scrollbar-track {
  display: none !important;
  background: transparent !important;
}

.newbie-slide {
  animation: newbieSlideIn 0.22s ease-out;
}

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

.newbie-slide-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: #38bdf8;
  margin: 0 0 14px 0;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.newbie-slide-step-num {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

/* Control Grid (Slide 1) */
.newbie-ctrl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.newbie-ctrl-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
}

.newbie-ctrl-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.newbie-ctrl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.newbie-key {
  display: inline-block;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.35);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  color: #f8fafc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.newbie-desc {
  color: #94a3b8;
}

/* Feature List & Feature Grid (Slides 2, 3, 4, 5) */
.newbie-feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newbie-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 600px) {
  .newbie-feature-grid {
    grid-template-columns: 1fr;
  }
}

.newbie-feature-grid .newbie-feature-item {
  padding: 10px 12px;
}

.newbie-feature-grid .newbie-feature-body {
  font-size: 12px;
  line-height: 1.45;
}

.newbie-feature-item {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
}

.newbie-feature-head {
  font-size: 13.5px;
  font-weight: 700;
  color: #fde047;
  margin-bottom: 4px;
}

.newbie-feature-body {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.55;
}

/* Reward Box (Slide 4) */
.newbie-reward-box {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.12) 0%, rgba(30, 41, 59, 0.8) 100%);
  border: 1px solid rgba(234, 179, 8, 0.45);
  border-radius: 10px;
  padding: 16px;
  margin-top: 14px;
  text-align: center;
}

.newbie-reward-title {
  font-size: 14px;
  font-weight: 800;
  color: #fde047;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}

.newbie-reward-items {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.newbie-reward-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 8px 14px;
  border-radius: 8px;
}

.newbie-reward-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.newbie-reward-info {
  text-align: left;
}

.newbie-reward-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
}

.newbie-reward-count {
  font-size: 13px;
  font-weight: 800;
  color: #4ade80;
}

/* Footer & Controls */
.newbie-guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.85);
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.newbie-btn-primary {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #0f172a;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
}

.newbie-btn-primary:hover {
  background: linear-gradient(135deg, #fde047 0%, #eab308 100%);
  box-shadow: 0 6px 16px rgba(234, 179, 8, 0.45);
  transform: translateY(-1px);
}

.newbie-btn-secondary {
  background: rgba(30, 41, 59, 0.8);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.newbie-btn-secondary:hover:not(:disabled) {
  background: rgba(51, 65, 85, 0.9);
  color: #ffffff;
}

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

.newbie-guide-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.newbie-dot {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  cursor: pointer;
  transition: all 0.15s ease;
}

.newbie-dot.active {
  color: #0f172a;
  background: #fde047;
  border-color: #eab308;
  box-shadow: 0 0 8px rgba(253, 224, 71, 0.5);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .newbie-guide-panel {
    max-height: min(94%, 520px);
  }
  .newbie-guide-header {
    padding: 10px 14px;
  }
  .newbie-guide-title {
    font-size: 16px;
  }
  .newbie-guide-slides-container {
    padding: 14px;
  }
  .newbie-ctrl-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .newbie-guide-footer {
    padding: 10px 14px;
  }
  .newbie-btn-primary, .newbie-btn-secondary {
    padding: 7px 12px;
    font-size: 12px;
  }
}
