:root {
  --main-color: #4b7bec;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #0f0f12;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

body.zen-mode .zen-hide {
  display: none !important;
}

body.zen-mode .container {
  padding-top: 50px;
}

#dynamic-bg {
  position: fixed;
  top: -20px;
  left: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(8px) brightness(0.4);
  transition: background-image 0.5s ease-in-out;
}

body.zen-mode #dynamic-bg {
  filter: blur(0px) brightness(0.7);
}

.container {
  max-width: 600px;
  width: 100%;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 120px;
}

h1 {
  color: var(--main-color);
  text-shadow: 0 0 10px rgba(75, 123, 236, 0.5);
  margin-bottom: 10px;
  font-size: 2rem;
}

p {
  color: #aaaaaa;
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.quick-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag-btn {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid #444;
  color: #ccc;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: 0.2s;
}

.tag-btn:hover {
  background-color: var(--main-color);
  color: white;
  border-color: var(--main-color);
}

#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  width: 90%;
  max-width: 350px;
  pointer-events: none;
}

.toast {
  background-color: #2b2b2b;
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 10px;
  border: 1px solid #444;
  animation: toastIn 0.3s;
}

.toast.success {
  border-color: #2ecc71;
  color: #2ecc71;
}
.toast.error {
  border-color: #e74c3c;
  color: #e74c3c;
}
.toast.info {
  border-color: var(--main-color);
  color: var(--main-color);
}

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

.trending-wrapper {
  width: 100%;
  margin-bottom: 25px;
  overflow: hidden;
}

.trending-list {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding: 10px 5px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.trending-list::-webkit-scrollbar {
  display: none;
}

.trending-item {
  flex: 0 0 110px;
  position: relative;
  cursor: pointer;
  transition: 0.3s;
}

.trending-item:hover {
  transform: scale(1.05);
}

.trending-poster {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.trending-title {
  font-size: 0.8rem;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ddd;
}

.loading-trending {
  color: #aaa;
  font-size: 0.9rem;
  padding: 20px;
  width: 100%;
  text-align: center;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.nav-btn {
  position: relative;
  background: transparent;
  border: 1px solid #444;
  color: #aaa;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn:hover {
  border-color: var(--main-color);
  color: var(--main-color);
  background-color: rgba(255, 255, 255, 0.1);
}

/* PROFILE BUTTON FIXED */
.top-left-main {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 500;
  width: 45px;
  height: 45px;
  padding: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #444;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ccc;
  cursor: pointer;
  transition: 0.3s;
}

.top-left-main:hover {
  border-color: var(--main-color);
  color: var(--main-color);
  background: rgba(255, 255, 255, 0.1);
}

.mode-switcher {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 20px;
  background: #1b1b1f;
  padding: 5px;
  border-radius: 30px;
  border: 1px solid #333;
  display: inline-flex;
  flex-wrap: wrap;
}

.mode-btn {
  background: transparent;
  border: none;
  color: #aaa;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  font-size: 0.9rem;
}

.mode-btn.active {
  background-color: var(--main-color);
  color: white;
}

.search-area {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.voice-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #333;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.voice-btn:hover {
  background-color: #444;
}

.voice-btn.listening {
  background: #ff5252;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 82, 82, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 82, 82, 0);
  }
}

.gacha-btn {
  background: var(--main-color);
  color: white;
  font-size: 1.2rem;
  padding: 15px 40px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-grow: 1;
  max-width: 300px;
}

.gacha-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  filter: brightness(1.1);
}

.gacha-btn:active {
  transform: scale(0.95);
}

.gacha-btn:disabled {
  background: #555;
  cursor: wait;
  transform: none;
}

.anime-card {
  background-color: #1b1b1f;
  border-radius: 15px;
  overflow: hidden;
  margin-top: 40px;
  text-align: left;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: none;
  animation: popUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #333;
}

@keyframes popUp {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.anime-poster {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  display: block;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 0;
}

.content {
  padding: 25px;
}

.tag-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
}
.badge-score {
  background-color: #f1c40f;
  color: #000;
}
.badge-ep {
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
}
.badge-status {
  background-color: #27ae60;
  color: white;
}

.anime-title {
  margin: 0;
  padding: 20px;
  font-size: 1.5rem;
  text-align: center;
  background-color: #151518;
  border-bottom: 1px solid #333;
  color: #fff;
}

.anime-title span {
  display: block;
  margin-top: 5px;
}

.synopsis {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
  max-height: 150px;
  overflow-y: auto;
  margin-bottom: 20px;
  border-top: 1px solid #333;
  padding-top: 15px;
}

.quote-box {
  margin: 15px 0 25px 0;
  padding: 15px;
  background-color: #252529;
  border-left: 4px solid var(--main-color);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.quote-text {
  margin: 0;
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.4;
}

.quote-char {
  display: block;
  margin-top: 8px;
  color: var(--main-color);
  font-size: 0.85rem;
  font-weight: bold;
  text-align: right;
  font-style: normal;
}

.filter-box {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.custom-input {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #333;
  background-color: #1b1b1f;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
  min-width: 150px;
}

.custom-input:focus {
  border-color: var(--main-color);
  box-shadow: 0 0 10px rgba(75, 123, 236, 0.2);
}

/* FAB MENU */
.fab-container {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  z-index: 10000;
}

.toggle-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background-color: var(--main-color);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.main-fab {
  width: 55px;
  height: 55px;
  background: var(--main-color);
  z-index: 10001;
}

.fab-items {
  position: absolute;
  right: 0;
  bottom: 70px;

  display: flex;
  flex-direction: column;
  gap: 12px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) translateX(200px); /* GESER JAUH KE SAMPING */
  transition: all 0.3s ease;

  z-index: -1;
  pointer-events: none; /* HILANGIN HITBOX */
}

.fab-container.active .fab-items {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) translateX(0); /* BALIK NORMAL */

  z-index: 10002;
  pointer-events: auto; /* BARU BISA DIKLIK */
}

.fab-container.active .main-fab {
  transform: rotate(45deg);
}

.mini-fab {
  width: 45px;
  height: 45px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.toggle-btn svg {
  width: 24px;
  height: 24px;
  stroke: white;
  fill: none;
}

.toggle-btn:hover {
  transform: scale(1.1);
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.action-buttons a,
.fav-btn,
.save-btn,
.recommend-btn {
  flex: 1;
  text-align: center;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
  font-size: 0.9rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.fav-btn {
  background: transparent;
  border: 1px solid #ff5252;
  color: #ff5252;
}
.fav-btn i.filled-heart {
  font-weight: 900;
  color: #ff5252;
}

.recommend-btn {
  background-color: #00b894;
  color: white;
  border: none;
}
.recommend-btn:hover {
  background-color: #00a383;
}

.save-btn {
  background: linear-gradient(45deg, #8e44ad, #9b59b6);
  color: white;
  border: none;
}
.save-btn:hover {
  background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

.trailer-btn {
  background-color: #ff0000;
  color: white;
  border: 1px solid #ff0000;
}
.trailer-btn:hover {
  background-color: #cc0000;
}

.share-btn {
  background-color: #25d366;
  color: white;
  border: 1px solid #25d366;
}
.share-btn:hover {
  background-color: #128c7e;
}

.mal-link {
  background-color: transparent;
  border: 1px solid var(--main-color);
  color: var(--main-color);
}
.mal-link:hover {
  background-color: var(--main-color);
  color: white;
}

.top-left {
  position: fixed;
  left: 20px;
  top: 20px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: #1b1b1f;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #333;
  text-decoration: none;
  color: white;
  transition: 0.2s;
}

.history-item:hover {
  transform: translateX(5px);
  border-color: var(--main-color);
  background-color: #252529;
}

.history-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
}

.history-info {
  flex: 1;
}

.history-title {
  font-size: 0.95rem;
  font-weight: bold;
  margin: 0;
  line-height: 1.2;
  color: #eee;
}

.history-score {
  font-size: 0.8rem;
  color: #f1c40f;
  margin-top: 3px;
  display: block;
}

.empty-msg {
  color: #777;
  font-style: italic;
  text-align: center;
}

.clear-btn {
  background: transparent;
  border: 1px solid #555;
  color: #aaa;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  width: 100%;
  transition: 0.3s;
}

.clear-btn:hover {
  border-color: #ff5252;
  color: #ff5252;
}

.upload-box {
  border: 2px dashed #444;
  border-radius: 15px;
  padding: 40px 20px;
  position: relative;
  cursor: pointer;
  transition: 0.3s;
  background-color: #1b1b1f;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.upload-box:hover {
  border-color: var(--main-color);
  background-color: rgba(75, 123, 236, 0.05);
}

.upload-box input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  top: 0;
  left: 0;
}

.preview-img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.scan-results-container {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.scan-result-card {
  background-color: #1b1b1f;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #333;
  text-align: left;
}

.scan-video {
  width: 100%;
  background: black;
  display: block;
}

.scan-info {
  padding: 15px;
}

.scan-title {
  color: var(--main-color);
  font-size: 1.1rem;
  margin: 0 0 5px 0;
}

.scan-meta {
  font-size: 0.85rem;
  color: #aaa;
}

/* --- DESAIN BARU HALAMAN PROFIL (MODERN) --- */
.profile-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.profile-card {
  background: rgba(255, 255, 255, 0.05); /* Glass Effect */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 450px;
  text-align: center;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  animation: popUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-top: 40px;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #252529;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 3px solid var(--main-color);
  box-shadow: 0 0 20px rgba(75, 123, 236, 0.4);
}

.profile-avatar i {
  font-size: 4rem;
  color: var(--main-color);
}

.profile-name {
  font-size: 1.8rem;
  margin: 0;
  background: linear-gradient(45deg, #fff, #aaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

.profile-role {
  display: inline-block;
  background: var(--main-color);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-top: 10px;
  font-weight: bold;
  letter-spacing: 1px;
}

.profile-body {
  margin-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
}

.profile-quote {
  font-style: italic;
  color: #bbb;
  margin-bottom: 20px;
}

.profile-aliases p {
  color: #888;
  font-size: 0.9rem;
  margin: 5px 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: white;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.social-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Warna Spesifik Sosmed */
.social-btn.ig {
  background: linear-gradient(
    45deg,
    #405de6,
    #5851db,
    #833ab4,
    #c13584,
    #e1306c,
    #fd1d1d
  );
}
.social-btn.tw {
  background: #000;
  border: 1px solid #333;
}
.social-btn.em {
  background: #ea4335;
}

/* Tooltip Nama Sosmed (Optional) */
.social-btn span {
  display: none; /* Hide text, show icon only for clean look */
}

/* STATS STYLE LAMA TETAP ADA */
.stats-card {
  background: #1b1b1f;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.stats-card h3 {
  margin: 0 0 10px 0;
  color: #eee;
  font-size: 1.1rem;
}
.level-badge {
  font-size: 2rem;
  font-weight: 900;
  color: var(--main-color);
  text-shadow: 0 0 15px rgba(75, 123, 236, 0.3);
  margin-bottom: 5px;
}
.stats-grid {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}
.stat-box {
  flex: 1;
  background: #252529;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #333;
}
.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}
.stat-label {
  font-size: 0.8rem;
  color: #aaa;
}
.chart-container {
  background: #1b1b1f;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #333;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

body.light-mode {
  background: #f0f2f5;
  color: #333;
}
body.light-mode h1 {
  text-shadow: none;
}
body.light-mode .anime-card,
body.light-mode .mode-switcher,
body.light-mode .history-item,
body.light-mode .custom-input {
  background: #fff;
  border-color: #ddd;
  color: #333;
}
body.light-mode .card-header {
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
  color: #333;
}
body.light-mode .anime-title {
  color: #333;
}
body.light-mode .quote-box {
  background: #e4e6eb;
  border-left-color: var(--main-color);
}
body.light-mode .quote-text {
  color: #555;
}
body.light-mode .quote-char {
  color: var(--main-color);
}
body.light-mode .upload-box,
body.light-mode .scan-result-card {
  background: #fff;
  border-color: #ddd;
}
body.light-mode .scan-title {
  color: var(--main-color);
}
body.light-mode .stats-card,
body.light-mode .stat-box,
body.light-mode .chart-container {
  background: #fff;
  border-color: #ddd;
  color: #333;
}
body.light-mode .stats-card h3,
body.light-mode .stat-num {
  color: #333;
}
body.light-mode .toggle-btn svg {
  stroke: #333;
}
/* Light Mode Profile Override */
body.light-mode .top-left-main {
  background: rgba(255, 255, 255, 0.7);
  border-color: #ccc;
  color: #333;
}
body.light-mode .profile-card {
  background: rgba(255, 255, 255, 0.6);
  border-color: #fff;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}
body.light-mode .profile-name {
  background: linear-gradient(45deg, #333, #666);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.light-mode .profile-avatar {
  background: #fff;
}

@media (max-width: 768px) {
  .fab-container {
    bottom: 20px !important;
    right: 20px !important;
    align-items: flex-end; /* Rata kanan */
  }

  .fab-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3 Kolom */
    gap: 15px; /* Jarak antar icon */
    background: rgba(27, 27, 31, 0.9); /* Latar belakang kotak */
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    transform: scale(0.8); /* Efek zoom in saat muncul */
    transform-origin: bottom right;
  }

  .fab-container.active .fab-items {
    transform: scale(1);
  }

  /* Sembunyikan background label warna di mobile biar rapi */
  .fab-items label.toggle-btn {
    background: transparent !important;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  .desktop-only {
    display: none !important;
  }
  .mobile-only-fab {
    display: flex !important;
  }
  h1 {
    font-size: 1.8rem;
    margin-top: 0;
  }
  .filter-box {
    flex-direction: column;
    gap: 15px;
  }
  .custom-input {
    width: 100%;
    box-sizing: border-box;
  }
  .action-buttons {
    gap: 10px;
  }
  .container {
    padding-bottom: 120px;
  }
  .top-nav {
    display: flex;
  }
}

@media (max-width: 400px) {
  .fab-container {
    bottom: 20px !important;
    right: 20px !important;
    align-items: flex-end; /* Rata kanan */
  }

  .fab-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3 Kolom */
    gap: 15px; /* Jarak antar icon */
    background: rgba(27, 27, 31, 0.9); /* Latar belakang kotak */
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    transform: scale(0.8); /* Efek zoom in saat muncul */
    transform-origin: bottom right;
  }

  .fab-container.active .fab-items {
    transform: scale(1);
  }

  /* Sembunyikan background label warna di mobile biar rapi */
  .fab-items label.toggle-btn {
    background: transparent !important;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  .trending-item {
    flex: 0 0 90px;
  }
  .trending-poster {
    height: 130px;
  }
}

@media (min-width: 769px) {
  .fab-container {
    bottom: 20px !important;
    right: 20px !important;
    align-items: flex-end; /* Rata kanan */
  }

  .fab-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: rgba(27, 27, 31, 0.9); /* Latar belakang kotak */
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    transform: scale(0.8); /* Efek zoom in saat muncul */
    transform-origin: bottom right;
  }

  .fab-container.active .fab-items {
    transform: scale(1);
  }

  /* Sembunyikan background label warna di mobile biar rapi */
  .fab-items label.toggle-btn {
    background: transparent !important;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  .mobile-only-fab {
    display: none !important;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

#skeletonCard {
  border-color: #333;
  pointer-events: none; /* Supaya gak bisa diklik pas loading */
}

.skeleton-header {
  background: #252529;
  padding: 15px;
  border-bottom: 1px solid #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Kotak abu-abu beranimasi */
.skeleton-img,
.skeleton-line,
.skeleton-badge {
  background: #1b1b1f;
  background: linear-gradient(to right, #252529 8%, #333 18%, #252529 33%);
  background-size: 1000px 100%;
  animation: shimmer 1.5s infinite linear;
}

.skeleton-img {
  width: 100%;
  height: 350px;
  display: block;
}

.skeleton-line {
  height: 15px;
  border-radius: 4px;
  width: 100%;
  margin-bottom: 8px;
}

.skeleton-line.title {
  height: 24px;
  width: 70%;
  border-radius: 6px;
}
.skeleton-line.subtitle {
  height: 14px;
  width: 40%;
}
.skeleton-line.text {
  height: 12px;
}
.skeleton-line.short {
  width: 50%;
}

.skeleton-badge {
  width: 60px;
  height: 25px;
  border-radius: 5px;
  display: inline-block;
}

.detail-wrapper {
  max-width: 900px;
  margin: 60px auto 0;
  padding: 0 20px;
}

.detail-clean-header {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-bottom: 50px;
  animation: fadeInUp 0.5s ease;
}

.detail-poster-section {
  position: relative;
}

.clean-poster {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  display: block;
}

.clean-poster:hover {
  transform: translateY(-5px);
}

.detail-info-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.clean-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.clean-subtitle {
  font-size: 1.1rem;
  color: #888;
  margin: 0;
  font-weight: 400;
}

.clean-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 15px 0;
}

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

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--main-color);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: white;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: #333;
}

.primary-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.primary-btn {
  flex: 1;
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-fav {
  background: transparent;
  border: 2px solid #ff5252;
  color: #ff5252;
}

.btn-fav:hover {
  border-color: #ff5252;
  color: #ff5252;
  transform: translateY(-2px);
}

.btn-fav.active {
  background: #ff5252;
  border-color: #ff5252;
  color: white;
}

.btn-play {
  background: var(--main-color);
  color: white;
  box-shadow: 0 10px 30px rgba(75, 123, 236, 0.3);
}

.btn-play:hover {
  background: #3d68d4;
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(75, 123, 236, 0.4);
}

.detail-clean-section {
  margin-bottom: 40px;
  animation: fadeInUp 0.6s ease;
}

.section-heading {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 15px 0;
  color: #fff;
  letter-spacing: -0.3px;
}

.synopsis-text {
  font-size: 1rem;
  line-height: 1.8;
  color: white;
  margin: 0;
}

.quote-section {
  background: linear-gradient(
    135deg,
    rgba(75, 123, 236, 0.1),
    rgba(75, 123, 236, 0.05)
  );
  border-left: 4px solid var(--main-color);
  padding: 30px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.quote-icon {
  font-size: 3rem;
  color: rgba(75, 123, 236, 0.2);
  margin-bottom: 15px;
}

.modern-quote-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #ddd;
  font-style: italic;
  margin: 0 0 15px 0;
}

.modern-quote-char {
  font-size: 0.95rem;
  color: var(--main-color);
  font-weight: 600;
  margin: 0;
  text-align: right;
}

.secondary-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
  padding-bottom: 40px;
}

.secondary-btn {
  padding: 12px 20px;
  background: #252529;
  border: 1px solid #333;
  border-radius: 10px;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.9rem;
}

.secondary-btn:hover {
  background: #2d2d32;
  border-color: var(--main-color);
  transform: translateY(-2px);
}

.secondary-btn i {
  font-size: 1.1rem;
}

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

/* Responsive */
@media (max-width: 768px) {
  .detail-clean-header {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .clean-poster {
    max-width: 250px;
    margin: 0 auto;
  }

  .clean-title {
    font-size: 2rem;
  }

  .clean-stats {
    justify-content: center;
  }

  .primary-actions {
    flex-direction: column;
  }

  .secondary-actions {
    grid-template-columns: 1fr;
  }
}

/* Light Mode Support */
body.light-mode .detail-wrapper {
  color: white;
}

body.light-mode .clean-title {
  color: white;
}

body.light-mode .synopsis-text {
  color: white;
}

body.light-mode .secondary-btn {
  background: #f5f5f5;
  border-color: white;
  color: black;
}

body.light-mode .secondary-btn:hover {
  background: #e8e8e8;
}

body.light-mode .btn-fav {
  border-color: #ddd;
  color: white;
}

body.light-mode .modern-quote-text {
  color: white;
}

body.light-mode .quote-section {
  background: linear-gradient(
    135deg,
    rgba(75, 123, 236, 0.05),
    rgba(75, 123, 236, 0.02)
  );
}

.profile-hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0) !important;
}

.form-group {
  margin-bottom: 15px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: #ccc;
  font-size: 0.9rem;
  font-weight: bold;
}

/* Memastikan input di dalam form mengikuti style input yang sudah ada */
.stats-card input,
.stats-card textarea {
  width: 100%;
  box-sizing: border-box; /* Supaya padding tidak bikin lebar berlebih */
  background: #252529;
  border: 1px solid #444;
}

.stats-card input:focus,
.stats-card textarea:focus {
  border-color: var(--main-color);
  outline: none;
}

.tech-stack-container {
  margin: 20px 0;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.tech-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: 0.3s;
}

.tech-badge:hover {
  background: var(--main-color);
  color: white;
  border-color: var(--main-color);
  transform: translateY(-2px);
}

/* Warna Ikon Spesifik */
.tech-badge .fa-html5 {
  color: #e34c26;
}
.tech-badge .fa-css3-alt {
  color: #264de4;
}
.tech-badge .fa-js {
  color: #f0db4f;
}

/* Override saat hover agar ikon jadi putih semua */
.tech-badge:hover i {
  color: white;
}

.fav-anime-section {
  margin: 20px 0;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.fav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.fav-item img {
  width: 100%;
  height: 100px; /* Ukuran poster kecil */
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.fav-item:hover img {
  transform: scale(1.05);
}

.fav-item span {
  font-size: 0.7rem;
  color: #ddd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* --- FITUR TRAKTIR KOPI --- */
.support-btn {
  display: inline-flex; /* Biar icon & teks sejajar */
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 25px;
  background: #ffdd00; /* Warna Kuning Kopi */
  color: #333;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(255, 221, 0, 0.2);
}

.support-btn:hover {
  background: #ffc107;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 221, 0, 0.4);
}

/* --- ANIMASI SHAKE (EASTER EGG) --- */
@keyframes shake {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }
  10% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }
  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }
  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }
  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }
  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }
  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }
  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }
  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }
  90% {
    transform: translate(1px, 2px) rotate(0deg);
  }
  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}

.shake-anim {
  animation: shake 0.5s;
  animation-iteration-count: 1;
}

#searchResultList {
  display: flex;
  flex-wrap: wrap; /* Agar turun ke bawah kalau penuh */
  justify-content: center; /* Rata tengah */
  gap: 15px; /* Jarak antar kartu */
  padding: 10px;
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Memastikan item hasil search ukurannya pas */
#searchResultList .trending-item {
  flex: 0 0 140px; /* Lebar kartu tetap (mirip poster bioskop) */
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
}

#searchResultList .trending-item:hover {
  transform: scale(1.05); /* Efek zoom saat di-hover */
}

#searchResultList .trending-poster {
  width: 100%;
  height: 200px; /* Tinggi poster fix */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#searchResultList {
  display: flex;
  flex-wrap: wrap; /* Agar turun ke bawah kalau penuh */
  justify-content: center; /* Rata tengah */
  gap: 15px;
  padding: 10px;
  margin-top: 20px;
}

/* Memaksa ukuran kartu di hasil pencarian agar seragam */
#searchResultList .trending-item {
  flex: 0 0 140px; /* Lebar kartu tetap */
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#searchResultList .trending-poster {
  width: 100%;
  height: 200px; /* Tinggi poster tetap */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#searchResultList .trending-title {
  width: 100%;
  font-size: 0.85rem;
  margin-top: 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Titik-titik kalau kepanjangan */
  color: #ddd;
}

/* Responsif untuk HP kecil */
@media (max-width: 400px) {
  #searchResultList .trending-item {
    flex: 0 0 45%; /* Jadi 2 kolom di HP kecil */
    width: 45%;
  }
  #searchResultList .trending-poster {
    height: 180px;
  }
}

.schedule-time {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.day-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 5px;
  margin-bottom: 10px;
  justify-content: center;
}

.day-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #444;
  color: #ccc;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.3s;
  font-size: 0.9rem;
}

.day-btn:hover {
  border-color: var(--main-color);
  color: var(--main-color);
}

.day-btn.active {
  background: var(--main-color);
  color: white;
  border-color: var(--main-color);
  box-shadow: 0 4px 10px rgba(75, 123, 236, 0.3);
}

.schedule-time {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffeb3b;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .day-tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  #searchResultList {
    gap: 10px; /* Jarak lebih rapat di HP */
    padding: 5px;
  }

  #searchResultList .trending-item {
    flex: 0 0 100px; /* Ukuran kartu lebih kecil di HP */
    width: 100px;
  }

  #searchResultList .trending-poster {
    height: 150px;
  }

  #searchResultList .trending-title {
    font-size: 0.75rem;
  }
}

.learning-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-top: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.breadcrumb {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 20px;
}

.breadcrumb span {
  cursor: pointer;
  color: var(--main-color);
}

.breadcrumb span:hover {
  text-decoration: underline;
}

/* Level Cards (N5-N1) */
.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
}

.level-card {
  background: #252529;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

.level-card:hover {
  border-color: var(--main-color);
  transform: translateY(-3px);
}

.level-badge-big {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--main-color);
  display: block;
  margin-bottom: 5px;
}

/* Lesson Content Styles */
.lesson-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.lesson-h3 {
  color: #fff;
  border-left: 4px solid var(--main-color);
  padding-left: 10px;
  margin-bottom: 15px;
}

.example-box {
  background: #1b1b1f;
  border: 1px dashed #555;
  padding: 15px;
  border-radius: 8px;
  margin: 10px 0;
  font-family: "Segoe UI", sans-serif;
}

.jp-text {
  font-size: 1.2rem;
  color: #a4b0be;
}
.ro-text {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-bottom: 5px;
  display: block;
}
.id-text {
  font-size: 1rem;
  color: #fff;
  font-weight: bold;
}

/* Vocab Table */
.vocab-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.vocab-table th,
.vocab-table td {
  padding: 10px;
  border-bottom: 1px solid #444;
  text-align: left;
}
.vocab-table th {
  color: var(--main-color);
}

/* Quiz Box */
.quiz-box {
  background: #2c3e50;
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
}
.quiz-option {
  display: block;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  margin: 5px 0;
  border-radius: 5px;
  cursor: pointer;
}
.quiz-option:hover {
  background: rgba(255, 255, 255, 0.1);
}
.quiz-option.correct {
  background: #27ae60;
  color: white;
}
.quiz-option.wrong {
  background: #c0392b;
  color: white;
}

/* Light Mode Support */
body.light-mode .level-card,
body.light-mode .lesson-section {
  background: #fff;
  border-color: #ddd;
  color: #333;
}
body.light-mode .example-box {
  background: #f9f9f9;
  border-color: #ccc;
}
body.light-mode .jp-text {
  color: #2c3e50;
}
body.light-mode .id-text {
  color: #333;
}
body.light-mode .vocab-table th {
  color: var(--main-color);
}
body.light-mode .vocab-table td {
  border-bottom: 1px solid #eee;
}

.novel-reader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95); /* Gelap banget biar fokus */
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Teks di tengah vertikal */
  align-items: center;
  padding: 20px;
  cursor: pointer; /* Memberi tahu user bisa diklik */
}

.novel-content-area {
  max-width: 800px;
  width: 100%;
  text-align: center;
  position: relative;
  padding-bottom: 40px; /* Ruang buat segitiga */
}

.typing-text {
  font-size: 2rem;
  color: #fff;
  font-family: "Courier New", Courier, monospace; /* Font ala ketikan */
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  min-height: 100px;
  white-space: pre-wrap;
  line-height: 1.8;
  word-break: break-word;
}

/* Animasi Segitiga Kedip-kedip */
.next-icon {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  color: var(--main-color);
  font-size: 2rem;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, 10px);
    opacity: 1;
  }
}

/* Style untuk Cover Novel di Menu */
.novel-item {
  width: 140px;
  cursor: pointer;
  transition: 0.3s;
}
.novel-item:hover {
  transform: scale(1.05);
}
.novel-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.novel-title {
  font-size: 0.9rem;
  margin-top: 8px;
  color: white;
  font-weight: bold;
}

@media (max-width: 992px) {
  .typing-text {
    font-size: 1.6rem;
    line-height: 1.7;
  }

  .novel-content-area {
    max-width: 600px;
    padding: 0 15px 40px;
  }

  .next-icon {
    font-size: 1.8rem;
  }

  .novel-item {
    width: 120px;
  }

  .novel-cover {
    height: 170px;
  }
}

@media (max-width: 600px) {
  .novel-reader {
    padding: 10px;
  }

  .novel-content-area {
    max-width: 100%;
    padding: 0 10px 35px;
  }

  .typing-text {
    font-size: 1.2rem;
    line-height: 1.6;
    min-height: 80px;
  }

  .next-icon {
    font-size: 1.6rem;
  }

  .novel-item {
    width: 110px;
  }

  .novel-cover {
    height: 160px;
  }

  .novel-title {
    font-size: 0.8rem;
  }
}

@media (max-width: 400px) {
  .typing-text {
    font-size: 1rem;
  }

  .next-icon {
    font-size: 1.4rem;
  }

  .novel-item {
    width: 95px;
  }

  .novel-cover {
    height: 140px;
  }
}

.omikuji-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  height: 400px;
  justify-content: center;
}

/* Kotak Ramalan (Bentuk Tabung/Hexagon Sederhana) */
.omikuji-box {
  width: 120px;
  height: 200px;
  background: #f1c40f; /* Warna Kayu/Emas */
  border: 4px solid #d35400;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: transform 0.2s;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.omikuji-hole {
  position: absolute;
  top: -10px;
  width: 40px;
  height: 20px;
  background: #2c3e50;
  border-radius: 50%;
  border: 3px solid #d35400;
}

/* Animasi Mengocok (Shake) */
.shaking {
  animation: shakeBox 0.5s infinite;
}

@keyframes shakeBox {
  0% {
    transform: rotate(0deg) translate(0, 0);
  }
  25% {
    transform: rotate(-10deg) translate(-5px, 5px);
  }
  50% {
    transform: rotate(0deg) translate(0, -5px);
  }
  75% {
    transform: rotate(10deg) translate(5px, 5px);
  }
  100% {
    transform: rotate(0deg) translate(0, 0);
  }
}

/* Kertas Ramalan */
.omikuji-paper {
  position: absolute;
  top: 150px; /* Posisi awal di dalam box */
  width: 220px;
  background: #fffbf0; /* Warna kertas lama */
  color: #333;
  padding: 20px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  opacity: 0;
  z-index: 1; /* Di belakang box saat awal */
  transform: scale(0.5);
  transition: all 0.5s ease;
}

/* Animasi Kertas Keluar */
.omikuji-paper.show {
  top: 220px; /* Jatuh ke bawah */
  opacity: 1;
  z-index: 5; /* Muncul ke depan */
  transform: scale(1);
}

.quest-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.quest-card {
  background: #252529;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 15px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.quest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.quest-title {
  font-weight: bold;
  color: #fff;
  font-size: 1rem;
}

.quest-reward {
  font-size: 0.8rem;
  color: #f1c40f;
  background: rgba(241, 196, 15, 0.1);
  padding: 3px 8px;
  border-radius: 5px;
}

/* Progress Bar */
.progress-track {
  width: 100%;
  height: 8px;
  background: #333;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 5px;
}

.progress-fill {
  height: 100%;
  background: var(--main-color);
  width: 0%; /* Nanti diubah via JS */
  transition: width 0.5s ease;
}

.quest-status {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 5px;
  text-align: right;
}

/* Tombol Klaim (Muncul kalau selesai) */
.btn-claim-quest {
  margin-top: 10px;
  width: 100%;
  padding: 8px;
  background: #2ecc71;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  animation: popUp 0.3s;
}

.quest-card.completed {
  border-color: #2ecc71;
  background: rgba(46, 204, 113, 0.05);
}
