* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
a.no-underline { text-decoration: none; }
html, body { scroll-behavior: smooth; }
body {
  background: radial-gradient(circle at 50% 0%, #151d30 0%, #0a0e17 45%, #05070c 100%);
  min-height: 100vh;
  overscroll-behavior-y: none;
}
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a3348; border-radius: 4px; }

.card {
  background: linear-gradient(145deg, #151c2c 0%, #10151f 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
}
.card-glow {
  box-shadow: 0 0 0 1px rgba(16,185,129,0.12), 0 10px 30px -10px rgba(16,185,129,0.15);
}
.gold-gradient {
  background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #10b981 100%);
}
.gold-text {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.green-gradient { background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%); }
.red-gradient { background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%); }

.progress-track {
  background: #1c2436;
  border-radius: 999px;
  overflow: hidden;
  height: 8px;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #34d399);
  transition: width .6s ease;
}

/* Bottom Nav */
#bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(10,14,23,0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.07);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-item { transition: all .2s ease; }
.nav-item.active { color: #10b981; }
.nav-item.active .nav-icon-wrap {
  background: rgba(16,185,129,0.12);
}
.nav-icon-wrap {
  transition: all .2s ease;
  border-radius: 12px;
}

/* Page transition */
.page-enter { animation: fadeSlideUp .35s ease; }
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn .3s ease; }

/* Toast */
.toast {
  pointer-events: auto;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: toastIn .3s ease;
  backdrop-filter: blur(10px);
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

.skeleton {
  background: linear-gradient(90deg, #151c2c 25%, #1e2740 50%, #151c2c 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.pulse-dot { animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px); z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .2s ease;
}
.modal-sheet {
  background: #10151f;
  border-radius: 24px 24px 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  max-height: 88vh; overflow-y: auto;
  width: 100%; max-width: 480px;
  animation: sheetUp .3s ease;
  padding-bottom: env(safe-area-inset-bottom);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

input, select, textarea {
  background: #0d1220;
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: #10b981; }
input::placeholder { color: #6b7280; }

.btn-primary {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #0a0e17;
  font-weight: 700;
  border-radius: 14px;
  padding: 14px;
  transition: transform .15s ease, opacity .15s ease;
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.5; }

.btn-secondary {
  background: #1a2132;
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  border-radius: 14px;
  padding: 14px;
  transition: transform .15s ease;
}
.btn-secondary:active { transform: scale(0.97); }

.badge {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
}

.tab-pill {
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  transition: all .2s ease; white-space: nowrap;
}
.tab-pill.active { background: linear-gradient(135deg, #10b981, #34d399); color: #0a0e17; }
.tab-pill:not(.active) { background: #151c2c; color: #9ca3af; }

/* Plinko board */
.plinko-board { position: relative; overflow: hidden; }
.plinko-peg { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #374151; }
.plinko-ball {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #34d399, #10b981);
  box-shadow: 0 0 8px rgba(16,185,129,0.6);
  transition: left 0.35s ease-in, top 0.35s ease-in;
}
.plinko-slot {
  flex: 1; text-align: center; font-size: 10px; font-weight: 700; padding: 6px 2px;
  border-radius: 6px; margin: 0 1px;
}

.coin-3d {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #34d399);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 900; color: #0a0e17;
  box-shadow: 0 8px 24px rgba(16,185,129,0.4), inset 0 -6px 12px rgba(0,0,0,0.2);
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
}
.coin-flip-anim { transform: rotateY(1800deg) !important; }

.chat-bubble-mine {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #0a0e17;
  border-radius: 16px 16px 4px 16px;
}
.chat-bubble-other {
  background: #1a2132;
  color: white;
  border-radius: 16px 16px 16px 4px;
}

/* Admin panel specific */
.admin-body { background: #0a0e17; }
.admin-sidebar { background: #0d1220; border-right: 1px solid rgba(255,255,255,0.06); }
.admin-table { border-collapse: collapse; width: 100%; }
.admin-table th { text-align: left; padding: 10px 12px; font-size: 12px; color: #9ca3af; border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-table td { padding: 10px 12px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

@media (min-width: 768px) {
  #app-container { max-width: 480px; margin: 0 auto; box-shadow: 0 0 60px rgba(0,0,0,0.5); min-height: 100vh; }
}

/* ==================== Warm/Welcoming UI Polish ==================== */

/* Floating Support Button */
.floating-support-btn {
  position: fixed;
  right: 16px;
  bottom: 92px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #0a0e17;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(16,185,129,0.5), 0 0 0 4px rgba(16,185,129,0.12);
  z-index: 90;
  animation: supportPulse 2.4s infinite;
  transition: transform .2s ease;
}
.floating-support-btn:active { transform: scale(0.92); }
@keyframes supportPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(16,185,129,0.5), 0 0 0 4px rgba(16,185,129,0.12); }
  50% { box-shadow: 0 8px 28px rgba(16,185,129,0.7), 0 0 0 8px rgba(16,185,129,0.06); }
}
@media (min-width: 768px) {
  .floating-support-btn { right: calc(50% - 240px + 16px); }
}

/* Trust strip on Home */
.trust-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.trust-strip::-webkit-scrollbar { display: none; }
.trust-strip span {
  flex-shrink: 0;
  background: linear-gradient(145deg, #151c2c 0%, #10151f 100%);
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 600;
  color: #d1d5db;
  display: flex; align-items: center; gap: 6px;
}

/* Announcement banner */
.announcement-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(52,211,153,0.10));
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 16px;
  padding: 12px 16px;
  color: white;
  animation: fadeSlideUp .4s ease;
}
.announcement-banner i { font-size: 18px; color: #34d399; flex-shrink: 0; }

/* Gentle floating glow accent used behind hero cards */
.float-glow { animation: floatGlow 6s ease-in-out infinite; }
@keyframes floatGlow {
  0%, 100% { transform: translate(0,0) scale(1); opacity: 0.7; }
  50% { transform: translate(-6px, 8px) scale(1.08); opacity: 1; }
}

/* Slightly livelier card hover/press feedback */
.card { transition: transform .18s ease, box-shadow .18s ease; }
.card:active { transform: scale(0.985); }

/* Softer, warmer button press feedback already exists via .btn-primary:active; add ripple glow on hover for larger screens */
@media (hover: hover) {
  .btn-primary:hover { box-shadow: 0 6px 20px rgba(16,185,129,0.35); }
  .card:hover { border-color: rgba(16,185,129,0.18); }
}

/* Welcoming empty-state / auth screen accents */
.auth-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.25);
  color: #34d399;
  font-size: 11px; font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
