/* user.css — Layout & komponen khusus user panel (landing) */

/* =================== HERO =================== */
.hero {
  position: relative; padding: 60px 20px 80px; text-align: center; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
}
.hero-content { position: relative; max-width: 760px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(32px, 6vw, 52px); font-weight: 900; letter-spacing: -1px;
  line-height: 1.1; margin-bottom: 16px;
}
.hero h1 .accent { color: var(--brand); }
.hero p { font-size: 17px; color: var(--text-2); margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =================== HEADER (user) =================== */
.user-brand { font-size: 20px; font-weight: 800; }
.user-brand .brand-dot { color: var(--brand); }
.app-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 15, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.app-header-inner {
  max-width: var(--max); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.app-header-right { display: flex; align-items: center; gap: 10px; }
.app-user-chip { display: flex; align-items: center; gap: 8px; background: var(--bg-3); padding: 4px 12px 4px 4px; border-radius: 999px; }
.app-user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.app-user-name { font-size: 14px; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =================== BOTTOM NAV =================== */
.bottom-nav {
  position: sticky; top: 57px; z-index: 40;
  background: rgba(18, 18, 26, 0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  display: flex; gap: 2px; padding: 6px 8px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.bottom-nav::-webkit-scrollbar { display: none; }
.bottom-nav-item {
  flex: 1; min-width: 64px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 6px; color: var(--text-3); font-size: 11px; font-weight: 600;
  border-radius: var(--r-sm); cursor: pointer; transition: all 0.15s; text-decoration: none;
  white-space: nowrap;
}
.bottom-nav-item:hover { color: var(--text); background: var(--bg-3); text-decoration: none; }
.bottom-nav-item.active { color: var(--brand); background: var(--brand-soft); }
.bn-icon { font-size: 18px; line-height: 1; }
.bn-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.3px; }

/* =================== RESPONSIVE =================== */
@media (max-width: 768px) {
  .app-header-inner { padding: 12px 16px; }
  .section { padding: 28px 16px; }
  .hero { padding: 44px 16px 56px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }
  .stat-card .stat-value { font-size: 22px; }
  .app-user-name { display: none; }
  .app-user-chip { padding: 4px; }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .gen-options { grid-template-columns: repeat(2, 1fr) !important; }
  .user-brand { font-size: 17px; }
  .open-netflix-btn { padding: 12px 18px; font-size: 15px; }
  .voucher-box, .profile-header { padding: 18px; }
  .gen-result-body { padding: 14px; }
  .gen-result-header h3 { font-size: 17px; }
  .bottom-nav-item { min-width: 56px; padding: 7px 4px; }
  .bn-label { font-size: 9px; }
}

@media (max-width: 420px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  .gen-options { grid-template-columns: 1fr !important; }
  .hero h1 { font-size: 26px; }
  .section-title { font-size: 20px; }
  .btn-lg { padding: 11px 22px; font-size: 15px; }
}

/* =================== SECTION =================== */
.section { padding: 40px 20px; max-width: var(--max); margin: 0 auto; }
.section-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; text-align: center; }
.section-sub { text-align: center; color: var(--text-2); margin-bottom: 32px; }

/* =================== GENERATE CARD =================== */
.gen-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 20px 0; }
.gen-option {
  background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--r);
  padding: 22px 18px; cursor: pointer; text-align: center; transition: all 0.3s;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.gen-option:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gen-option.selected { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 20px rgba(229,9,20,0.3); transform: translateY(-2px); }
.gen-option-icon { font-size: 28px; margin-bottom: 6px; }
.gen-option-name { font-weight: 700; font-size: 15px; }
.gen-option-desc { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* Generate result (user panel) */
.gen-result {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow);
  animation: modalIn 0.3s;
}
.gen-result-header {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  padding: 18px 22px; color: #fff;
}
.gen-result-header h3 { font-size: 19px; font-weight: 800; }
.gen-result-body { padding: 20px; }
.gen-result .open-netflix-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; padding: 14px 24px;
  border-radius: var(--r); font-weight: 700; font-size: 16px;
  text-decoration: none; text-align: center; transition: all 0.15s;
}
.gen-result .open-netflix-btn:hover {
  background: var(--brand-dark); transform: translateY(-1px); text-decoration: none;
}

/* =================== VOUCHER INPUT =================== */
.voucher-box {
  background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--r-lg);
  padding: 32px; text-align: center; max-width: 480px; margin: 0 auto;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--glass-shadow);
}
.voucher-box h3 { font-size: 20px; margin-bottom: 8px; }
.voucher-box p { color: var(--text-2); margin-bottom: 18px; font-size: 14px; }

/* =================== QUEUE INDICATOR =================== */
.queue-indicator {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-3); padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.queue-indicator.busy { background: var(--warn-soft); color: var(--warn); }
.queue-indicator.free { background: var(--ok-soft); color: var(--ok); }
.queue-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* =================== REVIEW CARD =================== */
.review-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 18px; display: flex; flex-direction: column; gap: 8px;
}
.review-head { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.review-name { font-weight: 700; font-size: 14px; }
.review-stars { color: var(--accent); font-size: 13px; }
.review-text { color: var(--text-2); font-size: 14px; }

/* =================== LEADERBOARD =================== */
.lb-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-sm); margin-bottom: 6px;
}
.lb-rank { font-size: 18px; font-weight: 800; width: 30px; text-align: center; }
.lb-rank.gold { color: #ffd700; }
.lb-rank.silver { color: #c0c0c0; }
.lb-rank.bronze { color: #cd7f32; }
.lb-info { flex: 1; }
.lb-name { font-weight: 700; }
.lb-score { font-size: 12px; color: var(--text-3); }

/* =================== PROFILE =================== */
.profile-header {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px; display: flex; align-items: center; gap: 18px; margin-bottom: 20px;
}
.profile-avatar {
  width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; color: #fff;
}

/* =================== FOOTER =================== */
.footer {
  border-top: 1px solid var(--border); padding: 30px 20px; text-align: center;
  color: var(--text-3); font-size: 13px;
}
.footer-links { display: flex; gap: 14px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.footer-link { color: var(--text-2); }
.footer-link:hover { color: var(--text); }

/* =================== CONTACT CARDS =================== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 20px; text-align: center; transition: all 0.15s; text-decoration: none; color: var(--text);
}
.contact-card:hover { border-color: var(--brand); transform: translateY(-2px); text-decoration: none; }
.contact-icon { font-size: 32px; margin-bottom: 8px; }
.contact-name { font-weight: 700; margin-bottom: 4px; }
.contact-desc { font-size: 12px; color: var(--text-3); }

/* =================== TIER PROGRESS BAR (user dashboard) =================== */
.tier-bar-wrap { background: var(--bg-2); border-radius: 999px; height: 10px; overflow: hidden; border: 1px solid var(--border); }
.tier-bar { background: linear-gradient(90deg, var(--brand), var(--accent)); height: 100%; border-radius: 999px; transition: width 0.5s ease; }
