/* ==========================================================================
   Telegram Web App - bonus.webciniz.com
   Modern Casino & Reward Dark UI Theme
   ========================================================================== */

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Cabinet Grotesk', 'Plus Jakarta Sans', sans-serif;

  /* Renk Paleti */
  --bg-dark: #080b11;
  --bg-card: rgba(18, 24, 38, 0.85);
  --bg-card-hover: rgba(24, 32, 50, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(245, 158, 11, 0.35);

  --gold-100: #fff4d1;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-gradient: linear-gradient(135deg, #FFE57F 0%, #FFB300 50%, #FF8F00 100%);
  --gold-glow: rgba(255, 179, 0, 0.35);

  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.3);

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --safe-bottom: env(safe-area-inset-bottom, 16px);
}

/* Telegram Tema Değişkenleri ile Entegrasyon */
body.telegram-theme {
  --bg-dark: var(--tg-theme-bg-color, #080b11);
}

/* Sıfırlamalar ve Temel Ayarlar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.5;
  overflow-x: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Arka Plan Atmosferik Işıklar */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.glow-top {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0) 70%);
  top: -80px;
  right: -50px;
}

.glow-bottom {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0) 70%);
  bottom: 80px;
  left: -80px;
}

/* Ana Konteyner */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px calc(80px + var(--safe-bottom)) 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==========================================================================
   Üst Bar (Header)
   ========================================================================== */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
}

.user-greeting {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1.5px solid var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  font-size: 1.2rem;
  box-shadow: 0 0 14px var(--gold-glow);
}

.greeting-text {
  display: flex;
  flex-direction: column;
}

.sub-hello {
  font-size: 0.75rem;
  color: var(--gold-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.badge-live {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--emerald-400);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--emerald-400);
  box-shadow: 0 0 8px var(--emerald-400);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--emerald-400); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* ==========================================================================
   Aciliyet / Sayaç Barı (Urgency)
   ========================================================================== */
.urgency-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.82rem;
}

.urgency-content {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
}

.flame-icon {
  color: #f97316;
  font-size: 1rem;
  animation: flicker 1.2s infinite alternate;
}

@keyframes flicker {
  0% { opacity: 0.8; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1.1); }
}

.urgency-content strong {
  color: #fff;
}

.urgency-timer {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: #f87171;
  font-family: monospace;
  font-size: 0.95rem;
  background: rgba(239, 68, 68, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
}

/* ==========================================================================
   Hero / Ana Bonus Kartı
   ========================================================================== */
.hero-bonus-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: 22px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.card-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-20deg);
  animation: shine 4.5s infinite;
  pointer-events: none;
}

@keyframes shine {
  0% { left: -100%; }
  35% { left: 150%; }
  100% { left: 150%; }
}

.card-top-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--gold-400);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 30px;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.bonus-amount-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 6px 0 12px;
}

.bonus-amount-box .currency {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-400);
  position: absolute;
  top: 4px;
  margin-left: -90px;
}

.bonus-amount-box .amount {
  font-family: var(--font-heading);
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px var(--gold-glow));
}

.bonus-amount-box .bonus-type {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #cbd5e1;
  margin-top: 4px;
}

.hero-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 22px;
  padding: 0 4px;
}

/* ==========================================================================
   Ana Eylem Butonu (CTA Button)
   ========================================================================== */
.cta-primary {
  position: relative;
  display: block;
  width: 100%;
  text-decoration: none;
  border-radius: 16px;
  background: var(--gold-gradient);
  padding: 2px;
  box-shadow: 0 8px 24px var(--gold-glow);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
  cursor: pointer;
}

.cta-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 32px rgba(255, 179, 0, 0.55);
}

.cta-primary:active {
  transform: scale(0.97);
  box-shadow: 0 4px 14px var(--gold-glow);
}

.btn-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
  color: #0b0f19;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.btn-icon {
  font-size: 1.15rem;
  color: #0b0f19;
}

.btn-arrow {
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.cta-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* Güven Rozetleri */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.trust-item i {
  color: var(--emerald-400);
  font-size: 1rem;
}

/* ==========================================================================
   Avantaj Kartları (Features)
   ========================================================================== */
.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #f1f5f9;
}

.gold-icon {
  color: var(--gold-400);
}

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

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.icon-yellow {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-400);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.icon-green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.icon-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.feature-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 2px;
}

.feature-info p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   3 Adımda Bonusu Al (How It Works)
   ========================================================================== */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px 14px;
}

.step-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1.5px solid var(--gold-500);
  color: var(--gold-400);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.step-details h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 2px;
}

.step-details p {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* ==========================================================================
   Rehber Metin Alanı
   ========================================================================== */
.content-text-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-text-block strong {
  color: #fff;
}

.info-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(245, 158, 11, 0.08);
  border-left: 3px solid var(--gold-500);
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 0.76rem;
  color: #fde68a;
  margin-top: 4px;
}

.alert-icon {
  font-size: 1rem;
  margin-top: 2px;
  color: var(--gold-400);
}

/* ==========================================================================
   Sıkça Sorulan Sorular (Accordion)
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.active {
  border-color: rgba(245, 158, 11, 0.4);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: transparent;
  border: none;
  color: #f1f5f9;
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-main);
  gap: 10px;
}

.faq-question i {
  font-size: 0.78rem;
  color: var(--gold-400);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 16px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.5;
}

.faq-item.active .faq-answer {
  max-height: 180px;
  padding: 0 16px 14px 16px;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(16, 185, 129, 0.08));
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 20px 16px;
  text-align: center;
}

.final-cta-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.final-cta-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
  text-align: center;
  padding: 12px 4px;
  color: var(--text-muted);
  font-size: 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ==========================================================================
   Sticky Bottom Bar (Sabit Alt Bar)
   ========================================================================== */
.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-gold);
  padding: 10px 16px calc(10px + var(--safe-bottom)) 16px;
  z-index: 999;
  display: flex;
  justify-content: center;
}

.sticky-content {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sticky-info {
  display: flex;
  flex-direction: column;
}

.sticky-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--gold-400);
}

.sticky-desc {
  font-size: 0.72rem;
  color: var(--emerald-400);
  font-weight: 600;
}

.sticky-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-gradient);
  color: #0b0f19;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px var(--gold-glow);
  transition: transform 0.15s ease;
}

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