/* ═══════════════════════════════════════════════════════════════════
   Sylcon Rewards – User & Auth Portal CSS  (Premium Redesign)
═══════════════════════════════════════════════════════════════════ */

/* ── Auth Pages (Register / Login) ──────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

/* Decorative aurora beams */
.auth-page::before,
.auth-page::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.18;
  animation: float 8s ease-in-out infinite;
}
.auth-page::before {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #059669, transparent 70%);
  top: -150px; right: -100px;
}
.auth-page::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #10b981, transparent 70%);
  bottom: -100px; left: -80px;
  animation-delay: -4s;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(145deg,
    rgba(18,18,20,0.92) 0%,
    rgba(9,9,11,0.92) 100%);
  border: 1px solid rgba(16,185,129,0.18);
  border-radius: 28px;
  padding: 44px 40px;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(16,185,129,0.08) inset,
    0 1px 0 rgba(255,255,255,0.06) inset;
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  animation: scaleIn .5s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}

/* Shimmer top edge */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,0.6), rgba(5,150,105,0.4), transparent);
}

.auth-logo {
  text-align: center;
  margin-bottom: 34px;
}
.auth-logo-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #059669, #10b981);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 8px 40px rgba(16,185,129,0.5), 0 0 0 1px rgba(255,255,255,0.1) inset;
}
.auth-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 2px;
  background: linear-gradient(135deg, #f0f4ff, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-sub { color: rgba(136,146,164,0.9); font-size: 0.9rem; line-height: 1.5; }

.auth-form { display: flex; flex-direction: column; gap: 18px; }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: rgba(100,116,139,0.7); font-size: 0.8rem; margin: 6px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
}

/* Benefits ticker */
.benefits-strip {
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(5,150,105,0.05));
  border: 1px solid rgba(16,185,129,0.18);
  border-radius: 12px;
  padding: 13px 16px;
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.benefits-strip::-webkit-scrollbar { display: none; }
.benefit-item {
  white-space: nowrap;
  font-size: 0.83rem;
  color: rgba(136,146,164,0.9);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.benefit-item:last-child { border-right: none; }
.benefit-pts { font-weight: 700; }

/* ── User Dashboard ──────────────────────────────────────────────── */
.user-layout { display: flex; flex-direction: column; min-height: 100vh; position: relative; z-index: 1; overflow-x: hidden; width: 100%; max-width: 100vw; }

/* Navbar */
.user-navbar {
  height: 66px;
  background: rgba(9,9,11,0.9);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  padding: 0 24px;
  justify-content: space-between;
  position: sticky;
  top: 0; z-index: 50;
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.user-navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,0.4), transparent);
}
.user-nav-logo { display: flex; align-items: center; gap: 10px; }
.user-nav-logo .logo-icon {
  width: 38px; height: 38px;
  font-size: 1.1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #059669, #10b981);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(16,185,129,0.4);
  animation: float 3s ease-in-out infinite;
}
.user-nav-right { display: flex; align-items: center; gap: 12px; }

/* Glowing points badge in navbar */
.points-badge-nav {
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(251,191,36,0.08));
  border: 1px solid rgba(245,158,11,0.35);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 0.83rem;
  font-weight: 700;
  color: #fbbf24;
  animation: goldGlow 3s ease-in-out infinite;
  box-shadow: 0 0 16px rgba(245,158,11,0.15);
  white-space: nowrap;
}
@keyframes goldGlow {
  0%,100% { box-shadow: 0 0 12px rgba(245,158,11,0.2); }
  50% { box-shadow: 0 0 24px rgba(245,158,11,0.4); }
}

.user-content { flex: 1; padding: 32px 24px; width: 94%; margin: 0 auto; width: 100%; }

/* ── Hero Card ───────────────────────────────────────────────────── */
.user-hero-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 34px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(16,185,129,0.1) inset;
}
.user-hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), rgba(255,255,255,0.05), transparent);
}
.user-hero-card::after {
  content: '🏆';
  position: absolute;
  right: 28px; top: 50%;
  transform: translateY(-50%);
  font-size: 5.5rem;
  opacity: 0.06;
  pointer-events: none;
}

/* Avatar */
.user-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #10b981);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 900; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.2), 0 8px 28px rgba(16,185,129,0.4);
  position: relative;
}
.user-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, rgba(16,185,129,0.5), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}

.user-hero-info { flex: 1; min-width: 200px; }
.user-hero-info h2 { font-size: 1.55rem; margin-bottom: 5px; }
.user-hero-info .location-tag { font-size: 0.83rem; color: rgba(136,146,164,0.9); }

.user-hero-stats { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 14px; }
.hero-stat-item { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-label { font-size: 0.68rem; color: rgba(100,116,139,0.8); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.hero-stat-value { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 800; color: #f0f4ff; }

/* Points circle */
.points-circle {
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(251,191,36,0.08));
  border: 2px solid rgba(245,158,11,0.35);
  border-radius: 20px;
  padding: 18px 28px;
  text-align: center;
  flex-shrink: 0;
  box-shadow: 0 0 28px rgba(245,158,11,0.15), 0 8px 24px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}
.points-circle::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.5), transparent);
}
.points-circle .pts-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1;
  text-shadow: 0 0 30px rgba(245,158,11,0.4);
}
.points-circle .pts-label {
  font-size: 0.7rem;
  color: rgba(245,158,11,0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 5px;
  font-weight: 600;
}

/* ── Referral Card ───────────────────────────────────────────────── */
.referral-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 26px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.referral-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.referral-link-box {
  display: flex; gap: 8px; align-items: center;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 14px;
}
.referral-link-url {
  flex: 1;
  font-size: 0.8rem;
  color: rgba(136,146,164,0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Space Grotesk', monospace;
  min-width: 0;
}

/* ── Share Buttons ───────────────────────────────────────────────── */
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.share-btn {
  display: flex; align-items: center; gap: 7px; justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.83rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: all .22s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.share-wa, .share-fb, .share-ig {
  width: 44px; height: 44px; padding: 0;
  border-radius: 50%;
}
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.12); }
.share-btn:active { transform: translateY(0); }

.share-wa {
  background: linear-gradient(135deg, #1a9e52, #25d366);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.share-fb {
  background: linear-gradient(135deg, #1557b0, #1877f2);
  color: #fff;
  box-shadow: 0 4px 16px rgba(24,119,242,0.3);
}
.share-ig {
  background: linear-gradient(135deg, #833ab4, #e1306c, #fd1d1d, #f77737);
  color: #fff;
  box-shadow: 0 4px 16px rgba(225,48,108,0.3);
}
.share-copy {
  background: rgba(255,255,255,0.06);
  color: #f0f4ff;
  border: 1px solid rgba(255,255,255,0.1);
}
.share-copy:hover { border-color: rgba(16,185,129,0.5); background: rgba(16,185,129,0.1); color: #34d399; }

/* ── Tab Navigation ──────────────────────────────────────────────── */
.user-tabs {
  display: flex;
  gap: 4px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 5px;
  margin-bottom: 22px;
  overflow-x: auto;
  flex-shrink: 1;
  max-width: 100%;
  scrollbar-width: none;
}
.user-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.85rem; font-weight: 600;
  border: none; cursor: pointer;
  background: none;
  color: rgba(136,146,164,0.8);
  transition: all .22s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
  border: 1px solid transparent;
}
.tab-btn:hover { color: #f0f4ff; background: rgba(255,255,255,0.05); }
.tab-btn.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,0.1);
}

.tab-content { display: none; animation: fadeIn .3s ease; }
.tab-content.active { display: block; }

/* ── Empty State Cards ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.07);
  border-radius: 16px;
}
.empty-state-icon { font-size: 3.5rem; margin-bottom: 14px; opacity: 0.7; animation: float 4s ease-in-out infinite; }
.empty-state p { color: rgba(136,146,164,0.8); font-size: 0.92rem; }

/* ── Check-in Animation ──────────────────────────────────────────── */
.checkin-success { text-align: center; padding: 40px; animation: fadeIn .5s ease; }
.checkin-icon { font-size: 4rem; animation: float 2s ease-in-out infinite; margin-bottom: 16px; }

.user-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  width: 100%;
}
.user-dashboard-left, .user-dashboard-right {
  min-width: 0;
  width: 100%;
}

@media (min-width: 1024px) {
  .user-dashboard-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
  }
}

/* ── Responsive User ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .auth-card { padding: 32px 22px; border-radius: 24px; }
  .user-hero-card { padding: 22px 18px; border-radius: 20px; flex-direction: column; text-align: center; gap: 16px; align-items: center; justify-content: center; }
  .user-hero-card::after { display: none; } /* Hide large trophy icon on mobile */
  .user-hero-card .user-hero-info { align-items: center; display: flex; flex-direction: column; min-width: unset; width: 100%; }
  .user-hero-card .user-hero-info h2 { font-size: 1.4rem; }
  .user-hero-stats { justify-content: center; width: 100%; gap: 12px; }
  .points-circle { width: 100%; justify-content: center; border-radius: 16px; margin-top: 8px; padding: 16px; }
  .tab-btn { padding: 9px 14px; font-size: 0.8rem; }
  .points-circle .pts-value { font-size: 2.2rem; }
  
  /* Scanner and Referral cards mobile fix */
  .glass-card { flex-direction: column !important; text-align: center; gap: 20px !important; }
  .glass-card > div { flex-direction: column; justify-content: center; text-align: center; }
  .glass-card .btn-primary { width: 100%; justify-content: center; }
  
  .referral-link-box { flex-direction: column; align-items: stretch; }
  .referral-link-box .share-btn { width: 100%; justify-content: center; padding: 12px 14px; font-size: 0.9rem; }
  .share-buttons { flex-direction: row; justify-content: center; gap: 16px; margin-top: 20px; }
}

/* ── Mobile History Cards ────────────────────────────────────────── */
.history-list { display: flex; flex-direction: column; gap: 12px; }
.history-card {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
  transition: transform .2s, background .2s;
}
.history-card:hover { background: rgba(255,255,255,0.06); }
.history-card-left { display: flex; align-items: center; gap: 14px; }
.history-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.2rem; color: #fff;
}
.history-icon.violet { background: linear-gradient(135deg, rgba(16,185,129,0.3), rgba(6,95,70,0.5)); border: 1px solid rgba(16,185,129,0.3); }
.history-icon.gold { background: linear-gradient(135deg, rgba(245,158,11,0.3), rgba(180,83,9,0.5)); border: 1px solid rgba(245,158,11,0.3); }
.history-icon.green { background: linear-gradient(135deg, rgba(16,185,129,0.3), rgba(4,120,87,0.5)); border: 1px solid rgba(16,185,129,0.3); }
.history-icon.red { background: linear-gradient(135deg, rgba(239,68,68,0.3), rgba(153,27,27,0.5)); border: 1px solid rgba(239,68,68,0.3); }
.history-icon.gray { background: linear-gradient(135deg, rgba(100,116,139,0.3), rgba(71,85,105,0.5)); border: 1px solid rgba(100,116,139,0.3); }
.history-title { font-weight: 600; font-size: 0.95rem; color: #f0f4ff; margin-bottom: 2px; }
.history-sub { font-size: 0.78rem; color: var(--text-3); }
.history-right { text-align: right; }
.history-val { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; }
.history-date { font-size: 0.72rem; color: var(--text-3); margin-top: 4px; }

/* Desktop view: use history cards instead of tables everywhere to make it universally beautiful */

