@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Inter:wght@400;500;600;700;800;900&family=Montserrat:wght@700;800;900&display=swap');

:root {
  --bs-navy: #0A0F26;
  --bs-navy-mid: #101B42;
  --bs-navy-card: #152252;
  --bs-navy-border: #1F3278;
  --bs-yellow: #FFD200;
  --bs-yellow-shadow: #B26A00;
  --bs-yellow-light: #FFF066;
  --bs-blue: #00B4FF;
  --bs-blue-dark: #0077CC;
  --bs-green: #00E676;
  --bs-green-shadow: #008744;
  --bs-purple: #9D4EDD;
  --bs-purple-dark: #5A189A;
  --bs-text: #FFFFFF;
  --bs-text-dim: #94A3B8;
  --bs-red: #FF3366;
  --font-heading: 'Lilita One', cursive, sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bs-navy);
  background-image: 
    radial-gradient(circle at 50% 20%, rgba(30, 64, 175, 0.45) 0%, transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(123, 44, 191, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 90% 85%, rgba(0, 180, 255, 0.25) 0%, transparent 50%),
    repeating-conic-gradient(from 0deg at 50% 30%, rgba(255, 255, 255, 0.015) 0deg 15deg, transparent 15deg 30deg);
  background-attachment: fixed;
  color: var(--bs-text);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* NAVBAR */
.bs-nav {
  width: 100%;
  background: rgba(10, 15, 38, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--bs-navy-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badge {
  background: linear-gradient(180deg, #FFDE00 0%, #F59E0B 100%);
  color: #1E1200;
  font-family: var(--font-heading);
  font-size: 19px;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 10px;
  box-shadow: 0 3px 0 #92400E, 0 4px 10px rgba(245, 158, 11, 0.4);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 0.8px;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.brand-title span {
  color: var(--bs-blue);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 27, 66, 0.8);
  border: 1px solid var(--bs-navy-border);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #E2E8F0;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background-color: var(--bs-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--bs-green);
  animation: pulse 1.6s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* HERO BANNER SECTION */
.hero-wrapper {
  max-width: 900px;
  margin: 20px auto 0 auto;
  padding: 0 16px;
  text-align: center;
}

.hero-art-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid var(--bs-navy-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 180, 255, 0.2);
  max-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 25%;
  filter: brightness(0.92) contrast(1.1);
}

.hero-art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 15, 38, 0.95) 0%, rgba(10, 15, 38, 0.4) 50%, rgba(10, 15, 38, 0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 24px;
}

.hero-badge-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.hero-pill {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-pill.gold {
  background: rgba(255, 210, 0, 0.2);
  border: 1px solid var(--bs-yellow);
  color: var(--bs-yellow);
}

.hero-pill.green {
  background: rgba(0, 230, 118, 0.2);
  border: 1px solid var(--bs-green);
  color: var(--bs-green);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 1.15;
  color: #FFFFFF;
  text-shadow: 0 3px 6px rgba(0,0,0,0.8), 0 0 20px rgba(0, 180, 255, 0.4);
}

.hero-title span {
  color: var(--bs-yellow);
}

.hero-subtitle {
  color: #CBD5E1;
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
}

/* MAIN CONTAINER & CARD */
.main-wrapper {
  max-width: 620px;
  width: 100%;
  margin: 18px auto 40px auto;
  padding: 0 16px;
  flex: 1;
}

.generator-card {
  background: var(--bs-navy-card);
  border: 3px solid var(--bs-navy-border);
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.card-ribbon-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #00B4FF, #FFD200, #00E676, #9D4EDD);
}

/* STEP LOGIC */
.step-pane {
  display: none;
  animation: fadeIn 0.35s ease-out;
}

.step-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  text-align: center;
  margin-bottom: 22px;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--bs-yellow);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 4px;
}

.step-heading {
  font-family: var(--font-heading);
  font-size: 26px;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  line-height: 1.2;
}

.step-desc {
  font-size: 13.5px;
  color: var(--bs-text-dim);
  margin-top: 4px;
}

/* FORM ELEMENTS */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #E2E8F0;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.label-hint {
  font-size: 11px;
  color: var(--bs-yellow);
  font-weight: 600;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--bs-blue);
  font-size: 16px;
  pointer-events: none;
}

.bs-input {
  width: 100%;
  background: #0B1333;
  border: 2px solid var(--bs-navy-border);
  border-radius: 12px;
  padding: 14px 14px 14px 44px;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.bs-input:focus {
  border-color: var(--bs-blue);
  box-shadow: 0 0 14px rgba(0, 180, 255, 0.35);
  background: #0D173D;
}

.bs-input::placeholder {
  color: #64748B;
  font-weight: 400;
}

/* LIVE PLAYER PROFILE CARD */
.player-profile-card {
  background: linear-gradient(180deg, #0F1D4A 0%, #0B1333 100%);
  border: 2px solid var(--bs-blue);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 10px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(0, 180, 255, 0.25);
  animation: fadeIn 0.25s ease-out;
}

.profile-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--bs-blue);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 0;
}

.profile-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.profile-avatar-img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 2.5px solid var(--bs-yellow);
  object-fit: cover;
  background: #1E293B;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.profile-details {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.profile-display-name {
  font-family: var(--font-heading);
  font-size: 17px;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-status-badge {
  background: rgba(0, 230, 118, 0.15);
  color: var(--bs-green);
  border: 1px solid var(--bs-green);
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-stats-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-tag-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--bs-blue);
  background: rgba(0, 180, 255, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
}

.profile-verified-pill {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--bs-green);
  background: rgba(0, 230, 118, 0.15);
  padding: 2px 7px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-server-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* PLATFORM SELECTOR TILES */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.platform-tile {
  background: #0B1333;
  border: 2px solid var(--bs-navy-border);
  border-radius: 12px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.platform-tile i {
  font-size: 22px;
  color: #94A3B8;
  transition: all 0.2s;
}

.platform-tile span {
  font-size: 12px;
  font-weight: 700;
  color: #CBD5E1;
}

.platform-tile:hover {
  border-color: #38BDF8;
  transform: translateY(-2px);
}

.platform-tile.selected {
  background: linear-gradient(180deg, #102663 0%, #0F1F4D 100%);
  border-color: var(--bs-blue);
  box-shadow: 0 0 12px rgba(0, 180, 255, 0.35);
}

.platform-tile.selected i {
  color: var(--bs-blue);
  transform: scale(1.1);
}

.platform-tile.selected span {
  color: #FFFFFF;
}

/* SECURITY TOGGLE ROW */
.security-box {
  background: rgba(11, 19, 51, 0.7);
  border: 1px solid var(--bs-navy-border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  margin-bottom: 22px;
}

.sec-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-info i {
  color: var(--bs-green);
  font-size: 20px;
}

.sec-text-title {
  font-size: 13px;
  font-weight: 700;
  color: #F1F5F9;
}

.sec-text-desc {
  font-size: 11px;
  color: #94A3B8;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #334155;
  border-radius: 24px;
  transition: 0.3s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .toggle-slider {
  background-color: var(--bs-green);
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* 3D ACTION BUTTONS */
.btn-bs-primary {
  width: 100%;
  background: linear-gradient(180deg, #FFDE00 0%, #F59E0B 100%);
  border: 2px solid #8C4700;
  border-radius: 14px;
  color: #1F1000;
  font-family: var(--font-heading);
  font-size: 19px;
  letter-spacing: 0.6px;
  padding: 15px 20px;
  cursor: pointer;
  box-shadow: 0 6px 0 #92400E, 0 8px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
}

.btn-bs-primary:hover {
  background: linear-gradient(180deg, #FFE833 0%, #FFA81A 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #92400E, 0 12px 20px rgba(245, 158, 11, 0.35);
}

.btn-bs-primary:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #92400E, 0 4px 8px rgba(0, 0, 0, 0.4);
}

.btn-bs-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 0 #92400E;
}

.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.btn-bs-back {
  background: #1E293B;
  border: 2px solid #334155;
  border-radius: 14px;
  color: #CBD5E1;
  font-family: var(--font-heading);
  font-size: 16px;
  padding: 14px 20px;
  cursor: pointer;
  box-shadow: 0 4px 0 #0F172A;
  transition: all 0.15s ease;
  text-transform: uppercase;
}

.btn-bs-back:hover {
  background: #334155;
  color: #FFFFFF;
}

.btn-bs-back:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #0F172A;
}

/* STEP 2: RESOURCE SELECTION */
.verified-tag-box {
  background: linear-gradient(180deg, rgba(16, 38, 99, 0.6) 0%, rgba(11, 19, 51, 0.8) 100%);
  border: 1.5px solid var(--bs-blue);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.step2-avatar-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid var(--bs-yellow);
  object-fit: cover;
  background: #1E293B;
  flex-shrink: 0;
}

.modal-avatar-thumb {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--bs-yellow);
  object-fit: cover;
  background: #1E293B;
  flex-shrink: 0;
}

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

.step2-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--bs-blue);
  background: rgba(0, 180, 255, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
}

.step2-connected-badge {
  margin-left: auto;
  background: rgba(0, 230, 118, 0.15);
  color: var(--bs-green);
  border: 1px solid var(--bs-green);
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.verified-details {
  font-size: 13px;
  color: #FFFFFF;
  text-align: left;
}

.verified-details strong {
  color: var(--bs-yellow);
}

.resource-category-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 18px;
  color: #FFFFFF;
  margin-bottom: 12px;
  margin-top: 18px;
}

.resource-category-title img {
  width: 24px;
  height: 24px;
}

/* SELECTION GRIDS */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pkg-card {
  background: #0B1333;
  border: 2px solid var(--bs-navy-border);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  user-select: none;
  overflow: hidden;
}

.pkg-card:hover {
  border-color: #38BDF8;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.pkg-card.selected {
  background: linear-gradient(180deg, #122B70 0%, #0F1F4D 100%);
  border-color: var(--bs-yellow);
  box-shadow: 0 0 16px rgba(255, 210, 0, 0.35);
  transform: translateY(-2px);
}

.pkg-card.featured-card {
  border-color: #F59E0B;
}

.pkg-card.featured-card::before {
  content: 'BEST VALUE';
  position: absolute;
  top: 5px;
  right: -25px;
  background: #DC2626;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 9px;
  padding: 2px 28px;
  transform: rotate(45deg);
  letter-spacing: 0.5px;
}

.pkg-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 8px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pkg-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));
}

.pkg-amount {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: #FFFFFF;
}

.pkg-amount.gems { color: #69F0AE; }
.pkg-amount.coins { color: #FDE047; }

.pkg-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94A3B8;
  margin-top: 2px;
}

/* BONUS BRAWL PASS CARD */
.bonus-pass-card {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.2) 0%, rgba(90, 24, 154, 0.35) 100%);
  border: 2px solid var(--bs-purple);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bonus-pass-card:hover {
  border-color: #D8B4FE;
  box-shadow: 0 0 16px rgba(157, 78, 221, 0.4);
}

.bonus-pass-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.bonus-pass-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bonus-pass-info {
  flex: 1;
}

.bonus-pass-title {
  font-family: var(--font-heading);
  font-size: 16px;
  color: #E9D5FF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bonus-tag {
  background: #FFD200;
  color: #1F1000;
  font-size: 9.5px;
  font-family: var(--font-body);
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.bonus-pass-desc {
  font-size: 12px;
  color: #CBD5E1;
  margin-top: 2px;
}

.bonus-check {
  font-size: 22px;
  color: #A855F7;
  transition: all 0.2s;
}

.bonus-pass-card.checked .bonus-check {
  color: #4ADE80;
}

/* STEP 3: CONSOLE & PROCESSING */
.process-box {
  text-align: center;
  padding: 10px 0;
}

.radar-spinner {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-ring {
  position: absolute;
  inset: 0;
  border: 4px solid rgba(0, 180, 255, 0.15);
  border-top-color: var(--bs-yellow);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

.radar-center-icon {
  width: 40px;
  height: 40px;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.progress-bar-shell {
  width: 100%;
  height: 14px;
  background: #0B1333;
  border: 1.5px solid var(--bs-navy-border);
  border-radius: 20px;
  overflow: hidden;
  margin: 18px 0;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00B4FF, #00E676, #FFD200);
  border-radius: 20px;
  transition: width 0.3s ease;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.6);
}

.process-console {
  background: #060A1A;
  border: 1.5px solid #1E293B;
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12.5px;
  height: 140px;
  overflow-y: hidden;
  color: #38BDF8;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}

.console-line {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
  word-break: break-all;
}

.console-line.success { color: var(--bs-green); }
.console-line.warn { color: var(--bs-yellow); }
.console-line.error { color: var(--bs-red); }

/* STEP 4: VERIFICATION MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 26, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.25s ease-out;
}

.modal-overlay.active {
  display: flex;
}

.bs-modal-card {
  background: #0F1738;
  border: 3px solid var(--bs-navy-border);
  border-radius: 22px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 180, 255, 0.25);
  overflow: hidden;
  animation: modalScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  background: linear-gradient(180deg, #172554 0%, #0F1738 100%);
  border-bottom: 2px solid var(--bs-navy-border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header-left img {
  width: 28px;
  height: 28px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 20px;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #FFFFFF;
}

.modal-body {
  padding: 20px;
  max-height: calc(85vh - 70px);
  overflow-y: auto;
}

.modal-alert-box {
  background: rgba(255, 210, 0, 0.1);
  border: 1.5px solid var(--bs-yellow);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  text-align: left;
}

.modal-alert-title {
  font-weight: 800;
  font-size: 13.5px;
  color: var(--bs-yellow);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.modal-alert-text {
  font-size: 12.5px;
  color: #E2E8F0;
  line-height: 1.4;
}

.summary-pill-row {
  display: flex;
  justify-content: space-between;
  background: #080D21;
  border: 1px solid var(--bs-navy-border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 12.5px;
}

.summary-pill-row span strong {
  color: var(--bs-yellow);
}

/* OFFERS LIST IN MODAL */
.offers-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.offer-card-adblue {
  background: #0B1333;
  border: 1.5px solid var(--bs-navy-border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #FFFFFF;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.offer-card-adblue:hover {
  border-color: var(--bs-blue);
  background: #101E4D;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 180, 255, 0.25);
}

.offer-icon-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  margin-right: 14px;
  flex-shrink: 0;
}

.offer-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #1E293B;
}

.offer-verified-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: var(--bs-green);
  color: #000;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  border: 1.5px solid #0F1738;
}

.offer-details {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.offer-tag-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.offer-partner-pill {
  font-size: 10px;
  font-weight: 800;
  color: var(--bs-blue);
  text-transform: uppercase;
}

.offer-fast-pill {
  font-size: 9px;
  font-weight: 800;
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
}

.offer-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offer-instruction-card {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--bs-blue);
  border-radius: 0 6px 6px 0;
  padding: 5px 8px;
  font-size: 11.5px;
  color: #CBD5E1;
  line-height: 1.35;
}

.offer-arrow-icon {
  margin-left: 10px;
  color: #64748B;
  font-size: 16px;
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}

.offer-card-adblue:hover .offer-arrow-icon {
  color: var(--bs-yellow);
  transform: translateX(3px);
}

.modal-footer-note {
  text-align: center;
  margin-top: 16px;
  font-size: 11.5px;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* REAL-TIME TOAST NOTIFICATION */
.bs-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #0B1333;
  border: 1.5px solid var(--bs-navy-border);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 230, 118, 0.2);
  z-index: 999;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 340px;
}

.bs-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon-wrap {
  width: 36px;
  height: 36px;
  background: rgba(0, 230, 118, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-green);
  font-size: 18px;
  flex-shrink: 0;
}

.toast-content {
  font-size: 12.5px;
  color: #E2E8F0;
  line-height: 1.35;
}

.toast-content strong {
  color: var(--bs-yellow);
}

.toast-time {
  font-size: 10.5px;
  color: #64748B;
  margin-top: 2px;
}

/* FOOTER */
.bs-footer {
  width: 100%;
  border-top: 1px solid var(--bs-navy-border);
  background: #070B1E;
  padding: 24px 20px;
  text-align: center;
  margin-top: auto;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #64748B;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #E2E8F0;
}

.footer-disclaimer {
  font-size: 11px;
  color: #475569;
  line-height: 1.5;
  max-width: 650px;
  margin: 0 auto;
}

/* ===================================================
   EXTENSIVE MOBILE OPTIMIZATION (iOS, Android, Tablets)
   =================================================== */

/* Prevent iOS Safari auto-zoom on input focus */
@media screen and (max-width: 768px) {
  .bs-input {
    font-size: 16px !important;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 20px;
  }

  .nav-container {
    padding: 10px 14px;
  }

  .brand-badge {
    font-size: 16px;
    padding: 5px 10px;
  }

  .brand-title {
    font-size: 19px;
  }

  .nav-status {
    padding: 4px 10px;
    font-size: 11px;
    gap: 6px;
  }

  /* Hero Section */
  .hero-wrapper {
    margin-top: 12px;
    padding: 0 12px;
  }

  .hero-art-card {
    height: 150px;
    max-height: 150px;
    border-radius: 16px;
  }

  .hero-art-img {
    height: 150px;
    object-position: center 20%;
  }

  .hero-art-overlay {
    padding: 12px 14px;
  }

  .hero-badge-row {
    margin-bottom: 4px;
    gap: 6px;
  }

  .hero-pill {
    font-size: 9.5px;
    padding: 2px 7px;
  }

  .hero-title {
    font-size: 21px;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 11.5px;
    margin-top: 2px;
  }

  /* Main Container */
  .main-wrapper {
    margin: 12px auto 24px auto;
    padding: 0 12px;
  }

  .generator-card {
    padding: 18px 14px;
    border-radius: 18px;
    border-width: 2px;
  }

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

  .step-number {
    font-size: 11.5px;
  }

  .step-heading {
    font-size: 22px;
  }

  .step-desc {
    font-size: 12px;
  }

  /* Inputs & Profile Card */
  .bs-input {
    padding: 12px 12px 12px 38px;
  }

  .input-icon {
    left: 12px;
    font-size: 14px;
  }

  .player-profile-card {
    padding: 10px 12px;
  }

  .profile-avatar-img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .avatar-wrap {
    width: 46px;
    height: 46px;
  }

  .profile-display-name {
    font-size: 15px;
  }

  .profile-tag-pill, .profile-trophy-pill {
    font-size: 10px;
    padding: 2px 6px;
  }

  /* Platform selector */
  .platform-grid {
    gap: 8px;
  }

  .platform-tile {
    padding: 10px 4px;
    border-radius: 10px;
  }

  .platform-tile i {
    font-size: 18px;
  }

  .platform-tile span {
    font-size: 11px;
  }

  /* Security Box */
  .security-box {
    padding: 10px 12px;
    margin-top: 10px;
    margin-bottom: 16px;
  }

  .sec-text-title {
    font-size: 12px;
  }

  .sec-text-desc {
    font-size: 10.5px;
  }

  /* 3D Action Buttons */
  .btn-bs-primary {
    font-size: 17px;
    padding: 13px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 0 #92400E, 0 6px 12px rgba(0, 0, 0, 0.4);
  }

  .btn-bs-back {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
  }

  /* Step 2 Verified Box */
  .verified-tag-box {
    padding: 8px 10px;
    gap: 10px;
  }

  .step2-avatar-thumb {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .step2-connected-badge {
    font-size: 9.5px;
    padding: 2px 6px;
  }

  /* Packages Grid */
  .packages-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .pkg-card {
    padding: 10px 6px;
    border-radius: 12px;
  }

  .pkg-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 6px;
  }

  .pkg-amount {
    font-size: 18px;
  }

  .pkg-label {
    font-size: 10.5px;
  }

  /* Bonus Brawl Pass Card */
  .bonus-pass-card {
    padding: 10px 12px;
    gap: 10px;
    border-radius: 12px;
  }

  .bonus-pass-icon {
    width: 38px;
    height: 38px;
  }

  .bonus-pass-title {
    font-size: 13.5px;
    gap: 6px;
    flex-wrap: wrap;
  }

  .bonus-pass-desc {
    font-size: 11px;
  }

  /* Step 3 Process Box */
  .radar-spinner {
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
  }

  .radar-center-icon {
    width: 30px;
    height: 30px;
  }

  .process-console {
    height: 125px;
    padding: 10px;
    font-size: 11.5px;
  }

  /* Step 4 Verification Modal */
  .modal-overlay {
    padding: 8px;
  }

  .bs-modal-card {
    border-radius: 18px;
    max-height: 94vh;
    border-width: 2px;
  }

  .modal-header {
    padding: 12px 16px;
  }

  .modal-title {
    font-size: 17px;
  }

  .modal-body {
    padding: 14px 12px;
    max-height: calc(92vh - 55px);
    -webkit-overflow-scrolling: touch;
  }

  .modal-alert-box {
    padding: 10px 12px;
    margin-bottom: 12px;
  }

  .modal-alert-title {
    font-size: 12.5px;
  }

  .modal-alert-text {
    font-size: 11.5px;
  }

  .summary-pill-row {
    padding: 8px 10px;
    margin-bottom: 14px;
    font-size: 11.5px;
  }

  /* Offer Cards on Mobile */
  .offer-card-adblue {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .offer-icon-wrapper {
    width: 42px;
    height: 42px;
    margin-right: 10px;
  }

  .offer-img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
  }

  .offer-title {
    font-size: 13px;
  }

  .offer-instruction-card {
    padding: 4px 6px;
    font-size: 10.5px;
  }

  /* Toast notification on Mobile */
  .bs-toast {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .toast-content {
    font-size: 11.5px;
  }
}

/* Extra small devices (iPhone SE / Galaxy Fold: width <= 360px) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 18px;
  }
  .brand-title {
    font-size: 16px;
  }
  .packages-grid {
    gap: 6px;
  }
  .pkg-amount {
    font-size: 16px;
  }
}
