@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
::-webkit-scrollbar {
  display: none;
}

body {
  background: #0a0a0a;
}

/* Page load animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
  0% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; display: none; }
}
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

main {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  background: #0a0a0a;
  overflow-x: hidden;
}

.container {
  width: 100%;
  height: 100%;
  max-width: 420px;
  min-height: 100vh;
  background: linear-gradient(180deg, #0d1117, #0a0a0a);
  color: #fff;
  animation: fadeInUp 0.4s ease-out;
}

/* Header */
header {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
}
header .back-btn {
  font-size: 22px;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.2s;
}
header .back-btn:hover {
  opacity: 1;
}
header .title {
  flex: 1;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
}

.diamond-count {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0, 255, 136, 0.08);
  border-radius: 10px;
  font-size: 13px;
}

/* Ad Container */
.ad-container {
  background: rgba(0, 255, 136, 0.04);
  border: 1px solid rgba(0, 255, 136, 0.1);
  margin-bottom: 12px;
  color: #fff;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}
.ad-container ins {
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden;
}

/* Top Anchor Ad - sticky top */
.anchor-ad-top {
  position: sticky;
  top: 0;
  z-index: 998;
  background: rgba(0, 255, 136, 0.04);
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}
.anchor-ad-top ins {
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden;
}
.anchor-ad-top .advertisement-text {
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(0, 255, 136, 0.25);
  margin: 0;
  padding: 2px 0;
}

#inter-ads {
  color: #fff;
  text-decoration: none;
}

/* Reward Button */
.reward-btn-container {
  position: relative;
  padding: 0 16px;
  text-decoration: none;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.reward-btn-container .ad {
  position: absolute;
  top: 7px;
  right: 25px;
  background: rgba(0, 255, 136, 0.3);
  color: #fff;
  font-size: 9px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
}
.reward-btn {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  background: linear-gradient(90deg, #00ff88, #00cc6a);
  color: #000;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.reward-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.advertisement-btn-text {
  font-size: 10px;
  letter-spacing: 3px;
  margin-top: 5px;
  color: rgba(0, 255, 136, 0.3);
}
.advertisement-text {
  font-size: 10px;
  letter-spacing: 3px;
  margin-bottom: 2px;
  color: rgba(0, 255, 136, 0.3);
}

/* Toast */
.toast-message {
  display: none;
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  color: #000;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 9999;
  max-width: 90vw;
  width: max-content;
  white-space: nowrap;
  text-align: center;
  text-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.toast-message.show {
  display: flex;
  animation: fadeOut 3s forwards;
}

.timer-toast-message {
  display: none;
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  color: #000;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 9999;
  max-width: 90vw;
  width: max-content;
  white-space: nowrap;
  text-align: center;
  text-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.timer-toast-message.show {
  display: flex;
  animation: fadeOut 8s forwards;
}

/* ===== BOTTOM NAVBAR ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 255, 136, 0.15);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  z-index: 1000;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 8px;
  transition: color 0.2s;
}
.nav-item svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.nav-item.active,
.nav-item:hover {
  color: #00ff88;
}

/* ===== SEARCH BAR ===== */
.search-container {
  padding: 0 16px 12px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  transition: border-color 0.2s;
}
.search-box:focus-within {
  border-color: #00ff88;
}
.search-box svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,0.3);
  flex-shrink: 0;
}
.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
}
.search-box input::placeholder {
  color: rgba(255,255,255,0.3);
}

/* ===== SHARE BUTTON ===== */
.share-fab {
  position: fixed;
  bottom: 80px;
  right: calc(50% - 190px);
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
  z-index: 999;
  transition: transform 0.2s;
}
.share-fab:hover {
  transform: scale(1.1);
}
.share-fab svg {
  width: 20px;
  height: 20px;
  fill: #000;
}
.share-menu {
  display: none;
  position: fixed;
  bottom: 130px;
  right: calc(50% - 195px);
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 12px;
  padding: 8px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}
.share-menu.show {
  display: flex;
  animation: fadeInUp 0.2s ease-out;
}
.share-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  border-radius: 8px;
  transition: background 0.2s;
}
.share-menu a:hover {
  background: rgba(0, 255, 136, 0.1);
}

/* ===== SKELETON LOADING ===== */
.skeleton {
  background: linear-gradient(90deg, rgba(0,255,136,0.05) 25%, rgba(0,255,136,0.1) 50%, rgba(0,255,136,0.05) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ===== CARD ANIMATIONS ===== */
.card-link {
  text-decoration: none;
  color: #fff;
  display: block;
}
.card-link .card {
  transition: transform 0.2s, border-color 0.2s;
}
.card-link:hover .card {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 136, 0.3);
}

/* Staggered load animation for cards */
.card-link:nth-child(1) { animation: fadeInUp 0.3s ease-out 0.05s both; }
.card-link:nth-child(2) { animation: fadeInUp 0.3s ease-out 0.1s both; }
.card-link:nth-child(3) { animation: fadeInUp 0.3s ease-out 0.15s both; }
.grid .card-link:nth-child(1) { animation: fadeInUp 0.3s ease-out 0.1s both; }
.grid .card-link:nth-child(2) { animation: fadeInUp 0.3s ease-out 0.15s both; }

/* ===== COPY BUTTON ===== */
.copy-btn {
  background: linear-gradient(90deg, #00ff88, #00cc6a);
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s;
}
.copy-btn:active {
  transform: scale(0.95);
}
.copy-btn.copied {
  background: #fff;
  color: #000;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 20px 16px;
  border-top: 1px solid rgba(0, 255, 136, 0.1);
  margin-top: 20px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #00ff88;
}
.footer-copy {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

/* ===== POLICY PAGES ===== */
.policy-content {
  padding: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}
.policy-content h2 {
  color: #00ff88;
  font-size: 18px;
  margin: 20px 0 10px 0;
}
.policy-content h3 {
  color: #fff;
  font-size: 16px;
  margin: 16px 0 8px 0;
}
.policy-content p { margin-bottom: 12px; }
.policy-content ul { margin: 8px 0 12px 20px; }
.policy-content ul li { margin-bottom: 6px; }
.policy-content a { color: #00ff88; text-decoration: none; }
.policy-content a:hover { text-decoration: underline; }

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.contact-form input,
.contact-form textarea {
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00ff88;
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form button {
  background: linear-gradient(90deg, #00ff88, #00cc6a);
  color: #000;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

/* ===== DAILY STREAK ===== */
.streak-banner {
  margin: 0 16px 12px;
  padding: 12px 16px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.streak-fire {
  font-size: 28px;
  line-height: 1;
}
.streak-info {
  flex: 1;
}
.streak-info .streak-title {
  font-size: 14px;
  font-weight: 600;
  color: #00ff88;
}
.streak-info .streak-days {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}
.streak-dots {
  display: flex;
  gap: 4px;
}
.streak-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.streak-dot.filled {
  background: #00ff88;
}

/* ===== IMPROVED SPIN WHEEL ===== */
.spin-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}
.wheel-wrapper {
  position: relative;
  margin: 20px 0;
}
.spin-pointer {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 30px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.spin-btn {
  background: linear-gradient(90deg, #00ff88, #00cc6a);
  color: #000;
  border: none;
  padding: 14px 60px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 16px;
}
.spin-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 25px rgba(0, 255, 136, 0.4);
}
.spin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Lazy load images */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}
img[loading="lazy"].loaded,
img[loading="lazy"][complete] {
  opacity: 1;
}
