/* ==========================================================================
   STING F1 MEGA EVENT - OFFICIAL DESIGN SYSTEM & STYLESHEET
   100% Pixel-Perfect Matching DigiX STING F1 Mega Event Mockups
   Clean, Elegant, Balanced Racing Typography (No Chaotic Text)
   ========================================================================== */

/* --- Fonts --- */
@font-face {
  font-family: "SVN Gotham";
  src: url("/fonts/SVN-Gotham-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SVN Gotham";
  src: url("/fonts/SVN-Gotham-Regular.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SVN Gotham";
  src: url("/fonts/SVN-Gotham-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SVN Gotham";
  src: url("/fonts/SVN-Gotham-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "UTM Bebas";
  src: url("/fonts/UTM-Bebas.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --sting-red: #D50000;
  --sting-red-dark: #8B0000;
  --sting-yellow: #FFE600;
  --sting-yellow-gold: #FFD700;
  --sting-black: #0B0A08;
  --sting-white: #FFFFFF;
  --sting-gray: #CCCCCC;
  --sting-shell-max: 430px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #050505;
  color: var(--sting-white);
  font-family: "SVN Gotham", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100dvh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sting-yellow);
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Chống tự động phóng to (auto-zoom) trên iOS Safari khi chạm vào ô nhập */
input, select, textarea {
  font-size: 16px !important;
}

/* ==========================================================================
   APP SHELL & MOBILE VIEWPORT CONTAINER
   ========================================================================== */
.sting-viewport {
  width: 100%;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background-color: #A80000;
}

@media (min-width: 480px) {
  body {
    background-color: #0d0d12;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px 0;
  }

  .sting-viewport {
    max-width: var(--sting-shell-max);
    min-height: 932px;
    height: 932px;
    border-radius: 44px;
    box-shadow: 0 0 0 10px #1a1a24, 0 25px 60px rgba(0, 0, 0, 0.9);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .sting-viewport::-webkit-scrollbar {
    width: 4px;
  }
  .sting-viewport::-webkit-scrollbar-thumb {
    background: rgba(255, 230, 0, 0.4);
    border-radius: 4px;
  }
}

.sting-screen {
  width: 100%;
  min-height: 100%;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background-color: #A80000;
  box-sizing: border-box;
}

/* Backgrounds */
.sting-screen--bg1 {
  background-image: url('/images/sting/kh/bg1.png');
  background-size: 100% 100%;
  background-position: center top;
}

.sting-screen--bg2 {
  background-image: url('/images/sting/kh/bg2-clean.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #A80000;
}

.sting-screen--pg-bg1 {
  background-image: url('/images/sting/pg/bg1.png');
  background-size: 100% 100%;
  background-position: center top;
  background-repeat: no-repeat;
}

.sting-screen--pg-bg2 {
  background-image: url('/images/sting/kh/bg2-clean.png');
  background-size: 100% auto;
  background-position: center top;
  background-repeat: repeat-y;
  background-color: #A80000;
}

/* Brand Header */
.sting-top-brand {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 0 14px;
}

.sting-top-brand a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.sting-brand-logo {
  width: 190px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.sting-content-shell {
  width: 100%;
  padding: 0 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  box-sizing: border-box;
}

/* Centered Result / Action Shell for Customer Result Screens */
.sting-center-shell {
  flex: 1;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px 20px 20px;
  box-sizing: border-box;
  transform: translateY(-46px);
}

/* PG Detail Centered Shell */
.pg-detail-shell {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: 0 16px 28px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

/* Standardized Sting Action Buttons */
.sting-btn {
  width: 100%;
  height: 52px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "SVN Gotham", sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
  padding: 0 18px;
  gap: 8px;
}

.sting-btn:active {
  transform: scale(0.98);
}

.sting-btn--primary {
  background: #FFE600;
  color: #000000;
  box-shadow: 0 4px 18px rgba(255, 230, 0, 0.45);
}

.sting-btn--primary:hover {
  background: #FFF04D;
}

.sting-btn--primary:disabled {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.sting-btn--danger {
  background: #D50000;
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(213, 0, 0, 0.45);
}

.sting-btn--danger:hover {
  background: #E50000;
}

.sting-btn--secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.sting-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Custom Camera Upload Button */
.pg-camera-upload-box {
  width: 100%;
  background: rgba(20, 20, 26, 0.85);
  border: 2px dashed rgba(255, 230, 0, 0.7);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  text-align: center;
}

.pg-camera-upload-box:hover,
.pg-camera-upload-box:active {
  background: rgba(30, 30, 40, 0.95);
  border-color: #FFE600;
  box-shadow: 0 0 16px rgba(255, 230, 0, 0.3);
}

.pg-camera-upload-box input[type="file"] {
  display: none;
}

.pg-camera-preview {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 1.5px solid #FFE600;
  display: none;
}

/* Detail Card Box */
.pg-detail-card {
  width: 100%;
  background: rgba(18, 18, 24, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 18px;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  margin-bottom: 16px;
}

/* ==========================================================================
   SCREEN 1: ĐĂNG KÝ KHÁCH HÀNG (APP KH 1.png)
   ========================================================================== */
.f1-register-shell {
  width: 100%;
  min-height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(150px, 24vh, 190px) 20px clamp(170px, 27vh, 220px);
  box-sizing: border-box;
}

.f1-title-tay-dua {
  width: 260px;
  max-width: 85%;
  margin: 0 auto 16px;
}

.f1-form-box {
  width: 100%;
  max-width: 360px;
}

.f1-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  width: 100%;
}

.f1-row-label {
  font-family: "SVN Gotham", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 20px;
  color: #FFFFFF;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.f1-input-pill {
  flex: 1;
  max-width: 220px;
  height: 46px;
  background: #000000;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.f1-input-pill input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: "SVN Gotham", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.f1-input-pill input::placeholder {
  color: #888888;
  font-family: "SVN Gotham", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  letter-spacing: 0.06em;
}

.f1-consent-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px auto 16px;
  cursor: pointer;
  text-align: left;
  max-width: 320px;
}

.f1-square-checkbox {
  width: 22px;
  height: 22px;
  accent-color: #D50000;
  cursor: pointer;
  flex-shrink: 0;
}

.f1-consent-text {
  font-size: 11px;
  color: #FFFFFF;
  line-height: 1.35;
  font-weight: 400;
}

.f1-consent-text a {
  color: #FFE600;
  text-decoration: underline;
}

.f1-btn-img-wrap {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 250px;
  transition: transform 0.15s ease;
}

.f1-btn-img-wrap:active {
  transform: scale(0.97);
}

.f1-btn-bat-dau {
  width: 100%;
  height: auto;
  display: block;
}

.f1-zalo-wrap {
  margin-top: 12px;
  text-align: center;
  display: flex;
  justify-content: center;
}

.f1-btn-zalo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #FFE600;
  border: none;
  color: #0A0A0A;
  font-family: "SVN Gotham", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 12px 24px;
  border-radius: 9999px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 5px 0 #D50000, 0 8px 20px rgba(255, 230, 0, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.f1-btn-zalo:hover {
  background: #FFF04D;
  color: #000000;
}

.f1-btn-zalo:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #D50000;
}

/* ==========================================================================
   SCREEN 2: XÁC THỰC OTP (APP KH 3.png)
   ========================================================================== */
.f1-otp-shell {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 20px 40px;
}

.f1-otp-heading {
  font-family: "SVN Gotham", sans-serif;
  font-weight: 900;
  font-size: 26px;
  color: #FFFFFF;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 0.05em;
}

.f1-otp-huge {
  font-family: "SVN Gotham", sans-serif;
  font-weight: 900;
  font-size: 54px;
  color: #FFE600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  margin: 4px 0 10px;
}

.f1-otp-sub {
  font-family: "SVN Gotham", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.f1-otp-pill-wrap {
  width: 100%;
  max-width: 320px;
  height: 64px;
  background: #000000;
  border-radius: 9999px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.f1-otp-big-input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: "SVN Gotham", sans-serif;
  font-weight: 900;
  font-size: 32px;
  letter-spacing: 0.25em;
  text-align: center;
}

/* ==========================================================================
   SCREEN 3: RACER DASHBOARD (APP KH 2.png)
   ========================================================================== */
.f1-title-luu-qr {
  width: 320px;
  max-width: 90%;
  margin: 8px auto 14px;
}

.f1-qr-card-white {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 14px;
  width: 220px;
  height: 220px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.f1-qr-card-white svg,
.f1-qr-card-white img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.f1-btn-download-img {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  margin: 0 auto 12px;
  width: 180px;
  transition: transform 0.15s ease;
}

.f1-btn-download-img:active {
  transform: scale(0.96);
}

.f1-racer-id-pill {
  background: #1A1A1A;
  border-radius: 12px;
  padding: 6px 28px;
  margin: 0 auto 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "SVN Gotham", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 20px;
  letter-spacing: 0.05em;
  color: #FFFFFF;
}

.f1-points-banner {
  font-family: "SVN Gotham", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 16px;
  color: #FFE600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  margin: 4px 0 12px;
  width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Khung Viền Trắng Chứa 5 Mốc Barrem Quà Tặng (Khớp 100% Mockup APP KH 2 & APP NSU 5) */
.f1-barrem-card-white {
  width: 100%;
  max-width: 380px;
  background: rgba(0, 0, 0, 0.12);
  border: 2.5px solid #FFFFFF;
  border-radius: 26px;
  padding: 12px 10px 14px;
  box-shadow: none;
  margin: 0 auto 12px;
  box-sizing: border-box;
}

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

.f1-barrem-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.f1-barrem-pill-left {
  flex: 1;
  height: 50px;
  background: #FFFFFF;
  border: none;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.f1-gift-name {
  font-family: "SVN Gotham", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 15px;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.f1-gift-thumb {
  height: 38px;
  max-width: 75px;
  object-fit: contain;
}

.f1-barrem-pill-right {
  width: 86px;
  height: 50px;
  background: #FFFFFF;
  border: none;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "SVN Gotham", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 20px;
  color: #111111;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  white-space: nowrap;
}

/* Hàng quà đạt mốc: TÔ ĐỎ STING (#D50000) CHỮ TRẮNG (Khớp Mockup APP KH 2 & APP NSU 5) */
.f1-barrem-row--active .f1-barrem-pill-left,
.f1-barrem-row--active .f1-barrem-pill-right {
  background: #D50000;
  border-color: #D50000;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(213, 0, 0, 0.4);
}

.f1-barrem-row--active .f1-gift-name,
.f1-barrem-row--active .f1-barrem-pill-right {
  color: #FFFFFF;
}

.f1-barrem-note {
  font-family: "SVN Gotham", sans-serif;
  font-style: italic;
  font-size: 11px;
  color: #FFFFFF;
  text-align: center;
  line-height: 1.35;
  margin-top: 10px;
  margin-bottom: 2px;
  padding: 0 4px;
}

/* Quick Action Links for Customer */
.f1-quick-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 380px;
  margin-bottom: 20px;
}

.f1-quick-btn {
  background: rgba(0, 0, 0, 0.6);
  border: 1.5px solid #FFE600;
  border-radius: 9999px;
  padding: 8px 16px;
  color: #FFE600;
  font-family: "SVN Gotham", sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.f1-quick-btn:active {
  background: #FFE600;
  color: #000000;
}

/* ==========================================================================
   SCREEN 4: APP PG (APP NSU 1 -> 6)
   ========================================================================== */

/* PG Login (APP NSU 1.png) */
.pg-login-shell {
  width: 100%;
  min-height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: clamp(295px, 33vh, 320px) 20px clamp(40px, 6vh, 60px);
  box-sizing: border-box;
}

.pg-login-input {
  width: 100%;
  max-width: 320px;
  height: 52px;
  background: #FFFFFF;
  border-radius: 9999px;
  border: none;
  outline: none;
  color: #000000;
  font-family: "SVN Gotham", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  margin-bottom: 14px;
}

.pg-login-input::placeholder {
  color: #888888;
  font-family: "SVN Gotham", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  letter-spacing: 0.05em;
}

/* PG Main Zalo Button (Chuẩn phong cách thể thao Sting F1) */
.pg-btn-zalo-main {
  width: 100%;
  max-width: 320px;
  height: 54px;
  background: #FFE600;
  border: none;
  border-radius: 9999px;
  box-shadow: 0 6px 0 #D50000, 0 12px 28px rgba(255, 230, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #0A0A0A;
  text-decoration: none;
  font-family: "SVN Gotham", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 15.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.pg-btn-zalo-main:hover {
  background: #FFF04D;
  color: #000000;
}

.pg-btn-zalo-main:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #D50000, 0 6px 14px rgba(255, 230, 0, 0.45);
}

/* Customer Dev Mode Test Box */
.f1-dev-test-box {
  width: 100%;
  max-width: 320px;
  margin: 18px auto 0;
  background: rgba(15, 15, 20, 0.88);
  border: 1.5px dashed rgba(255, 230, 0, 0.6);
  border-radius: 18px;
  padding: 14px 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

.f1-dev-test-badge {
  display: inline-block;
  background: #FFE600;
  color: #000000;
  font-family: "SVN Gotham", sans-serif;
  font-weight: 900;
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.f1-dev-test-desc {
  font-size: 12px;
  color: #DDDDDD;
  margin: 0 0 12px;
  line-height: 1.4;
  font-family: "SVN Gotham", sans-serif;
}

.f1-btn-dev-register {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 230, 0, 0.15);
  border: 1.5px solid #FFE600;
  border-radius: 9999px;
  color: #FFE600;
  text-decoration: none;
  font-family: "SVN Gotham", sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.f1-btn-dev-register:hover,
.f1-btn-dev-register:active {
  background: #FFE600;
  color: #000000;
}

/* PG Dev Mode Switch Box */
.pg-dev-switch-card {
  width: 100%;
  max-width: 320px;
  margin-top: 24px;
  background: rgba(15, 15, 20, 0.88);
  border: 1.5px dashed rgba(255, 230, 0, 0.6);
  border-radius: 18px;
  padding: 14px 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

.pg-dev-badge {
  display: inline-block;
  background: #FFE600;
  color: #000000;
  font-family: "SVN Gotham", sans-serif;
  font-weight: 900;
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pg-dev-desc {
  font-size: 12px;
  color: #DDDDDD;
  margin: 0 0 12px;
  line-height: 1.4;
  font-family: "SVN Gotham", sans-serif;
}

.pg-btn-dev-switch {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 230, 0, 0.15);
  border: 1.5px solid #FFE600;
  border-radius: 9999px;
  color: #FFE600;
  text-decoration: none;
  font-family: "SVN Gotham", sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-sizing: border-box;
}

.pg-dev-quick-btn {
  display: block;
  width: 100%;
  padding: 9px 12px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  color: #FFFFFF;
  font-family: "SVN Gotham", sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* PG Viewfinder with glowing neon yellow border (Matching Sting Electric Yellow) */
.pg-scanner-box {
  width: 100%;
  max-width: 290px;
  aspect-ratio: 1/1;
  margin: 14px auto;
  border: 3.5px solid #FFE600;
  border-radius: 30px;
  box-shadow: 0 0 25px rgba(255, 230, 0, 0.6), inset 0 0 15px rgba(255, 230, 0, 0.3);
  position: relative;
  overflow: hidden;
  background: #000000;
}

.pg-scanner-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: #FFE600;
  box-shadow: 0 0 10px #FFE600;
  top: 50%;
  animation: pgLaser 2s ease-in-out infinite alternate;
}

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

/* PG Station Map 2x4 (APP NSU 3, 4.png) */
.pg-user-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 14px;
}

.pg-user-name-pill {
  width: 100%;
  max-width: 380px;
  background: #FFE600;
  border-radius: 20px;
  padding: 10px 18px;
  text-align: center;
  font-family: "SVN Gotham", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 24px;
  color: #D50000;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.pg-station-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto 16px;
}

.pg-station-btn {
  min-height: 72px;
  background: #FFFFFF;
  border: none;
  border-radius: 22px;
  box-shadow: 0 6px 0 #FFD600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "SVN Gotham", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 15px;
  color: #111111;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 12px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  line-height: 1.15;
  letter-spacing: 0.02em;
  box-sizing: border-box;
  cursor: pointer;
}

.pg-station-btn:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #FFD600;
}

.pg-station-btn--done {
  background: #E51A24;
  border: 2px solid #FFD600;
  box-shadow: 0 6px 0 #FFD600;
  color: #FFFFFF;
}

.pg-station-btn--done:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #FFD600;
}

.pg-station-btn--gift {
  grid-column: 1 / -1;
  min-height: 64px;
  font-size: 17px;
}

.pg-station-btn--highlight {
  background: #FFE600;
  color: #0A0A0A;
  box-shadow: 0 6px 0 #D50000;
}

.pg-station-btn--highlight:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #D50000;
}

.pg-station-btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4);
}

.pg-station-btn--ghost:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

.pg-station-badge,
.pg-station-subtext {
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
  color: #FFE600;
  margin-top: 3px;
  display: block;
  letter-spacing: 0.03em;
}

/* Alerts */
.sting-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  width: 100%;
  max-width: 380px;
}

.sting-alert--error {
  background: rgba(213, 0, 0, 0.9);
  border: 1px solid #FF5252;
  color: #FFFFFF;
}

.sting-alert--ok {
  background: rgba(20, 20, 26, 0.95);
  border: 1.5px solid #FFE600;
  color: #FFE600;
  box-shadow: 0 4px 16px rgba(255, 230, 0, 0.35);
}

/* Keypad & Weigh-in */
.pg-reading {
  background: #000000;
  border-radius: 20px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "SVN Gotham", sans-serif;
  font-weight: 900;
  font-size: 52px;
  color: #FFE600;
  margin-bottom: 14px;
}

.pg-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 14px;
}

.pg-keypad button {
  height: 56px;
  background: #FFFFFF;
  border: none;
  border-radius: 16px;
  font-family: "SVN Gotham", sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: #000000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.pg-keypad button:active {
  background: #FFE600;
}

/* PG Person snippet */
.pg-person {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(22, 22, 28, 0.95), rgba(12, 12, 16, 0.95));
  border: 1.5px solid rgba(255, 230, 0, 0.75);
  border-radius: 16px;
  padding: 10px 16px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto 16px;
  box-sizing: border-box;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* PG Grid for Home Hub */
.pg-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  margin: 12px auto;
}

.pg-hub-tile {
  background: rgba(0, 0, 0, 0.75);
  border: 1.5px solid rgba(255, 230, 0, 0.8);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #FFFFFF;
  text-decoration: none;
  font-family: "SVN Gotham", sans-serif;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  text-align: center;
}

.pg-hub-tile:active {
  background: rgba(255, 230, 0, 0.2);
}

.pg-hub-tile img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.pg-hub-tile b {
  color: #FFE600;
  font-size: 14px;
}
