:root {
  --primary-red: #C8102E;
  --primary-red-dark: #8E0A1E;
  --primary-red-glow: rgba(200, 16, 46, 0.4);
  --gold-accent: #FFD700;
  --gold-light: #FFF275;
  --gold-dark: #C69214;
  --bg-dark: #0A0B10;
  --surface-card: rgba(255, 255, 255, 0.05);
  --surface-border: rgba(255, 255, 255, 0.12);
  --text-main: #FFFFFF;
  --text-muted: #A0A5B8;
  --zalo-blue: #0068FF;
  --radius-lg: 20px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background: radial-gradient(circle at 50% 20%, #1E080E 0%, #0A0B10 70%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  padding: 20px;
}

/* Simulator Container */
.simulator-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
}

/* Control Panel */
.control-panel {
  flex: 1;
  max-width: 420px;
  background: rgba(22, 24, 36, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 16, 46, 0.15);
  border: 1px solid rgba(200, 16, 46, 0.4);
  color: #FF6B81;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #FF4757;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 71, 87, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

.control-panel h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #FFF, #D4AF37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.control-panel .desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.quick-tools {
  background: rgba(0, 0, 0, 0.3);
  padding: 18px;
  border-radius: 16px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.btn-tool {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFF;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.btn-tool:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  transform: translateY(-1px);
}

.server-status-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  padding: 16px;
  border-radius: 14px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.status-tag {
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 11px;
}

.status-tag.online { background: rgba(46, 213, 115, 0.15); color: #2ED573; border: 1px solid rgba(46, 213, 115, 0.3); }
.status-tag.db { background: rgba(55, 66, 250, 0.15); color: #70A1FF; border: 1px solid rgba(55, 66, 250, 0.3); }
.status-tag.sp { background: rgba(255, 171, 0, 0.15); color: #FFA801; border: 1px solid rgba(255, 171, 0, 0.3); }

/* Smartphone Frame */
.smartphone-frame {
  width: 390px;
  height: 800px;
  background: #000;
  border-radius: 50px;
  border: 12px solid #2B2D3A;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(200, 16, 46, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Dynamic Island */
.speaker-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
}

.cam-lens {
  width: 10px;
  height: 10px;
  background: #111;
  border: 2px solid #222;
  border-radius: 50%;
}

/* Zalo Viewport */
.zalo-viewport {
  width: 100%;
  height: 100%;
  background: #0E0F17;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Zalo Header Bar */
.zalo-header-bar {
  height: 80px;
  padding-top: 32px;
  padding-left: 16px;
  padding-right: 16px;
  background: rgba(14, 15, 23, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 90;
}

.zalo-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zalo-icon-badge {
  width: 26px;
  height: 26px;
  background: var(--zalo-blue);
  color: #FFF;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.zalo-titles {
  display: flex;
  flex-direction: column;
}

.zalo-app-name {
  font-size: 13px;
  font-weight: 700;
  color: #FFF;
}

.zalo-sub {
  font-size: 10px;
  color: var(--text-muted);
}

.zalo-header-actions {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
}

.zalo-btn-action {
  background: transparent;
  border: none;
  color: #FFF;
  font-size: 13px;
  padding: 4px 6px;
  cursor: pointer;
}

.zalo-btn-action.close {
  font-size: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  margin-left: 4px;
  padding-left: 8px;
}

/* OA Follow Alert Banner */
.oa-banner {
  background: linear-gradient(90deg, #FF6B81, #C8102E);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

.oa-banner.hidden { display: none; }

.oa-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-oa-action {
  background: #FFF;
  color: var(--primary-red);
  border: none;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

/* App Scrollable Content */
.app-scroll-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 85px;
}

.app-scroll-content::-webkit-scrollbar {
  display: none;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #A80C24 0%, #4D0510 60%, #0E0F17 100%);
  padding: 20px 16px 14px;
  text-align: center;
  overflow: hidden;
}

.hero-decor {
  position: absolute;
  top: 10px;
  font-size: 26px;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}
.decor-left { left: 12px; }
.decor-right { right: 12px; }

.brand-sunhouse {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 6px;
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #FFF;
}

.brand-slogan {
  font-size: 9px;
  color: var(--gold-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.campaign-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
  color: #FFF;
  margin-bottom: 12px;
}

.highlight-gold {
  color: var(--gold-accent);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Countdown */
.countdown-container {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 6px 14px;
  border-radius: 12px;
}

.countdown-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--gold-accent);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 4px;
}

.time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 28px;
}

.time-box span {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #FFF;
}

.time-box small {
  font-size: 7px;
  color: var(--text-muted);
}

.colon {
  color: var(--gold-accent);
  font-weight: 800;
  margin-bottom: 6px;
}

/* Ticker Marquee (STORY-FE-01) */
.ticker-marquee-wrapper {
  background: rgba(255, 215, 0, 0.08);
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  display: flex;
  align-items: center;
  height: 32px;
  overflow: hidden;
  padding: 0 10px;
}

.ticker-icon {
  font-size: 14px;
  margin-right: 8px;
}

.ticker-content-track {
  white-space: nowrap;
  animation: marquee 20s linear infinite;
  font-size: 11px;
  color: var(--gold-light);
  font-weight: 600;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Account Card (STORY-FE-01) */
.account-card {
  margin: 14px;
  background: linear-gradient(135deg, rgba(30, 32, 48, 0.8), rgba(20, 21, 32, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.user-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.avatar-ring {
  position: relative;
  width: 44px;
  height: 44px;
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-accent);
}

.zalo-verify-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: var(--zalo-blue);
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  border: 1px solid #000;
}

.user-meta {
  flex: 1;
}

.user-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-name {
  font-size: 14px;
  font-weight: 700;
  color: #FFF;
}

.badge-oa {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.badge-oa.followed {
  background: rgba(46, 213, 115, 0.15);
  color: #2ED573;
  border: 1px solid rgba(46, 213, 115, 0.3);
}

.badge-oa.not-followed {
  background: rgba(255, 71, 87, 0.15);
  color: #FF4757;
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.user-phone {
  font-size: 11px;
  color: var(--text-muted);
}

.turns-stat-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.stat-label {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.stat-number-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.turn-count {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--gold-accent);
}

.turn-unit {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-cta-spin {
  background: linear-gradient(135deg, #FFD700 0%, #E67E22 100%);
  color: #000;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
  transition: all 0.2s ease;
  animation: pulseButton 2s infinite;
}

@keyframes pulseButton {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6); }
  100% { transform: scale(1); }
}

.turns-breakdown {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 10px;
  color: var(--text-muted);
}

.turns-breakdown strong {
  color: #FFF;
}

/* Tabs system */
.tab-view {
  display: none;
}
.tab-view.active {
  display: block;
}

/* Channels Section */
.channels-section {
  padding: 8px 14px 14px;
}

.section-header {
  margin-bottom: 12px;
}

.section-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #FFF;
  letter-spacing: 0.5px;
}

.section-header .subtitle {
  font-size: 10px;
  color: var(--text-muted);
}

.channel-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.channel-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-1px);
}

.channel-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(0, 0, 0, 0.3);
}

.channel-body {
  flex: 1;
}

.channel-body h4 {
  font-size: 13px;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 2px;
}

.channel-body p {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.badge-turns {
  display: inline-block;
  background: rgba(200, 16, 46, 0.2);
  color: #FF6B81;
  border: 1px solid rgba(200, 16, 46, 0.4);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}

/* Prizes Horizontal Scroll */
.prizes-section {
  padding: 0 14px 20px;
}

.prizes-horizontal-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.prizes-horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.prize-card-mini {
  flex: 0 0 130px;
  background: rgba(25, 27, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.prize-icon-circle {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.prize-name-mini {
  font-size: 11px;
  font-weight: 700;
  color: #FFF;
  line-height: 1.3;
  margin-bottom: 6px;
  height: 30px;
  overflow: hidden;
}

.prize-badge-type {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}
.prize-badge-type.physical { background: rgba(255, 71, 87, 0.15); color: #FF4757; }
.prize-badge-type.topup { background: rgba(46, 213, 115, 0.15); color: #2ED573; }
.prize-badge-type.luck { background: rgba(112, 161, 255, 0.15); color: #70A1FF; }

/* Wheel Stage View */
.wheel-stage-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 14px;
}

.wheel-headline {
  text-align: center;
  margin-bottom: 16px;
}

.wheel-headline h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--gold-accent);
}

.wheel-headline p {
  font-size: 11px;
  color: var(--text-muted);
}

.wheel-box {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

#wheelCanvas {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  box-shadow: 0 0 35px rgba(200, 16, 46, 0.4), inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid var(--gold-accent);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
  z-index: 20;
}

.wheel-center-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, #FFD700 0%, #D4AF37 70%, #996515 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.8);
  border: 4px solid #FFF;
  cursor: pointer;
  z-index: 10;
  user-select: none;
}

.hub-text {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 900;
  color: #7A0012;
  line-height: 1;
}

.hub-sub {
  font-size: 9px;
  font-weight: 800;
  color: #7A0012;
}

.wheel-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.turns-left-pill {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 14px;
  border-radius: 20px;
}

.turns-left-pill strong {
  color: var(--gold-accent);
}

.btn-spin-action {
  width: 85%;
  background: linear-gradient(135deg, var(--primary-red) 0%, #FF4757 100%);
  color: #FFF;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 14px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--primary-red-glow);
  transition: all 0.2s ease;
}

.btn-spin-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 16, 46, 0.6);
}

/* Get Turns View */
.get-turns-section, .history-section, .rules-section {
  padding: 16px 14px;
}

.get-turn-action-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.action-icon {
  font-size: 28px;
}

.action-text {
  flex: 1;
}

.action-text h3 {
  font-size: 13px;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 2px;
}

.action-text p {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-action-primary {
  background: var(--primary-red);
  color: #FFF;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.info-box-note {
  background: rgba(255, 171, 0, 0.1);
  border: 1px solid rgba(255, 171, 0, 0.3);
  padding: 14px;
  border-radius: 12px;
  font-size: 11px;
  color: #FFEAA7;
  margin-top: 16px;
}

.info-box-note ul {
  padding-left: 18px;
  margin-top: 6px;
}

.info-box-note li {
  margin-bottom: 4px;
}

/* History */
.history-tabs-nav {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 14px;
}

.sub-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

.sub-tab-btn.active {
  background: var(--primary-red);
  color: #FFF;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.h-title {
  font-size: 12px;
  font-weight: 700;
  color: #FFF;
}

.h-date {
  font-size: 10px;
  color: var(--text-muted);
}

.h-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.h-badge.win { background: rgba(255, 215, 0, 0.15); color: var(--gold-accent); }
.h-badge.turn { background: rgba(46, 213, 115, 0.15); color: #2ED573; }

/* Rules */
.rule-block {
  margin-bottom: 14px;
}

.rule-block h4 {
  font-size: 13px;
  color: var(--gold-accent);
  margin-bottom: 4px;
}

.rule-block p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Zalo Bottom Nav (STORY-FE-01) */
.zalo-bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 68px;
  background: rgba(18, 19, 28, 0.95);
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
}

.nav-item {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  cursor: pointer;
  width: 58px;
  transition: all 0.2s ease;
}

.nav-item .nav-icon {
  font-size: 18px;
}

.nav-item .nav-label {
  font-size: 9px;
  font-weight: 600;
}

.nav-item.active {
  color: var(--primary-red);
}

.nav-item.highlight-nav {
  margin-top: -24px;
}

.nav-fab-circle {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-red) 0%, #FF6B81 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #FFF;
  box-shadow: 0 6px 18px var(--primary-red-glow);
  border: 3px solid #12131C;
  transition: transform 0.2s ease;
}

.nav-item.highlight-nav:hover .nav-fab-circle {
  transform: scale(1.1);
}

/* Modals */
.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 320px;
  background: linear-gradient(180deg, #222538 0%, #161824 100%);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.modal-result-icon {
  font-size: 46px;
  margin-bottom: 8px;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-accent);
  margin-bottom: 4px;
}

.modal-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.prize-showcase {
  background: rgba(255, 215, 0, 0.1);
  border: 1px dashed var(--gold-accent);
  border-radius: 12px;
  padding: 12px;
  font-weight: 800;
  font-size: 14px;
  color: #FFF;
  margin-bottom: 16px;
}

.claim-form {
  text-align: left;
  margin-bottom: 16px;
}

.form-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
}

.claim-form input, .sim-code-row input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  color: #FFF;
  font-size: 12px;
  margin-bottom: 8px;
}

.btn-modal-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-red) 0%, #FF4757 100%);
  color: #FFF;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 13px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 6px;
}

.btn-modal-secondary {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  font-size: 12px;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
}

/* Scanner Viewfinder */
.scanner-viewfinder {
  position: relative;
  width: 180px;
  height: 180px;
  border: 2px dashed rgba(255, 215, 0, 0.6);
  border-radius: 14px;
  margin: 0 auto 16px;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.laser-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #FF4757;
  box-shadow: 0 0 10px #FF4757;
  animation: laserScan 2s ease-in-out infinite alternate;
}

@keyframes laserScan {
  0% { top: 10%; }
  100% { top: 90%; }
}

.scanner-tip {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  padding: 10px;
}

.bill-upload-box {
  background: rgba(0, 0, 0, 0.4);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 24px 16px;
  margin-bottom: 16px;
}

.upload-icon {
  font-size: 36px;
  margin-bottom: 6px;
}

.bill-upload-box p {
  font-size: 11px;
  color: var(--text-muted);
}

/* Responsive adjustment for Mobile viewports */
@media (max-width: 900px) {
  body {
    padding: 0;
    align-items: flex-start;
  }
  .simulator-wrapper {
    flex-direction: column-reverse;
    gap: 20px;
  }
  .smartphone-frame {
    width: 100vw;
    height: 100vh;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .control-panel {
    max-width: 100%;
    border-radius: 0;
  }
}
