/* ==========================================================================
   CALL OF DUTY - MODERN STEALTH STORE DESIGN SYSTEM
   Modern MW3 / COD HQ Dark Stealth Glassmorphic Aesthetic
   ========================================================================== */

:root {
  /* Core Obsidian Dark Theme */
  --bg-dark: #07090e;
  --bg-surface: #0c1017;
  --bg-card: rgba(16, 22, 33, 0.75);
  --bg-card-hover: rgba(22, 30, 46, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);

  /* Tactical Accents */
  --cod-gold: #f59e0b;
  --cod-gold-light: #fbbf24;
  --cod-gold-glow: rgba(245, 158, 11, 0.25);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Rarity Glow Accents */
  --mythic-red: #ef4444;
  --mythic-glow: rgba(239, 68, 68, 0.25);
  --legendary-amber: #f59e0b;
  --legendary-glow: rgba(245, 158, 11, 0.25);
  --epic-purple: #a855f7;
  --epic-glow: rgba(168, 85, 247, 0.25);

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Ambient Background Light Glows */
.ambient-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
  opacity: 0.15;
}

.ambient-glow.top-left {
  top: -150px;
  left: -150px;
  background: radial-gradient(circle, #f59e0b, transparent 70%);
}

.ambient-glow.bottom-right {
  bottom: -150px;
  right: -150px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
}

/* Main Application Shell */
.app-shell {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Top Navigation Bar
   ========================================================================== */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 16px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.nav-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Brand Section */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.3));
}

.nav-title-group {
  display: flex;
  flex-direction: column;
}

.nav-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
  line-height: 1.1;
}

.nav-subtitle {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--cod-gold);
  text-transform: uppercase;
}

/* Sleek Game Division Segmented Pill */
.game-segmented-pill {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  padding: 3px;
  gap: 3px;
}

.pill-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  border-radius: 24px;
  padding: 6px 14px;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pill-btn:hover {
  color: var(--text-primary);
}

.pill-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.pill-btn.active .pill-text {
  color: var(--cod-gold-light);
}

.pill-icon {
  font-size: 13px;
}

/* Nav Status */
.nav-status {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 20px;
  padding: 4px 10px;
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 1.8s infinite;
}

.status-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #22c55e;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* Responsive Nav Adjustments */
@media (max-width: 640px) {
  .app-nav {
    padding: 8px 12px;
  }
  .nav-container {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }
  .nav-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .nav-status {
    padding: 3px 8px;
  }
  .game-segmented-pill {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-sizing: border-box;
  }
  .pill-btn {
    justify-content: center;
    padding: 7px 4px;
    font-size: 11.5px;
  }
}

/* ==========================================================================
   Hero Showcase Card
   ========================================================================== */
.app-content {
  flex: 1;
  padding: 12px 14px 24px;
}

.hero-showcase {
  position: relative;
  width: 100%;
  min-height: 160px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000000;
  margin-bottom: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: brightness(0.65) contrast(1.15);
  transition: transform 0.6s ease;
}

.hero-showcase:hover .hero-bg-img {
  transform: scale(1.02);
}

.hero-gradient-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 16, 23, 0.4) 0%,
    rgba(12, 16, 23, 0.85) 70%,
    rgba(12, 16, 23, 0.98) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 160px;
}

.hero-badge {
  display: inline-flex;
  align-self: flex-start;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--cod-gold-light);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 4px;
}

.hero-heading .highlight {
  color: var(--cod-gold-light);
}

.hero-subheading {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
  max-width: 580px;
}

/* Sleek Integrated Live Ticker Strip */
.hero-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  overflow: hidden;
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cod-gold);
  box-shadow: 0 0 6px var(--cod-gold);
  flex-shrink: 0;
}

.ticker-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.6px;
  flex-shrink: 0;
}

.ticker-marquee {
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.25s ease;
}

.ticker-marquee strong {
  color: var(--cod-gold-light);
}

/* ==========================================================================
   Toolbar: Category Filter Pills & Search Bar
   ========================================================================== */
.toolbar-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

/* Categories Row */
.categories-pill-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.categories-pill-row::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 6px 12px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill:hover {
  background: var(--bg-card-hover);
  color: #ffffff;
  border-color: var(--border-hover);
}

.cat-pill.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cat-pill-count {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
}

.cat-pill.active .cat-pill-count {
  background: var(--cod-gold);
  color: #000000;
}

/* Search Bar */
.search-bar-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0 14px;
  height: 42px;
  transition: all 0.2s ease;
}

.search-bar-wrap:focus-within {
  border-color: var(--cod-gold);
  box-shadow: 0 0 0 2px var(--cod-gold-glow);
  background: rgba(18, 24, 36, 0.95);
}

.search-ico {
  font-size: 14px;
  color: var(--text-muted);
  margin-right: 10px;
}

.search-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 13px;
}

.search-field::placeholder {
  color: var(--text-muted);
  font-size: 12.5px;
}

.catalog-counter {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ==========================================================================
   Catalog Section: Store Tiles Grid
   ========================================================================== */
.catalog-section {
  width: 100%;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 680px) {
  .store-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

/* Modern Glass Card */
.store-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.store-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Tier-specific subtle edge glows */
.store-card.rarity-mythic:hover {
  border-color: rgba(239, 68, 68, 0.45);
  box-shadow: 0 10px 25px var(--mythic-glow);
}

.store-card.rarity-legendary:hover {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 10px 25px var(--legendary-glow);
}

.store-card.rarity-epic:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 10px 25px var(--epic-glow);
}

/* Card Header Badges */
.card-tier-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.badge-mythic {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-legendary {
  background: rgba(245, 158, 11, 0.25);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-epic {
  background: rgba(168, 85, 247, 0.25);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.card-type-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Card Image Container */
.card-media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.5) 0%, rgba(10, 14, 22, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  transition: transform 0.35s ease;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
}

.store-card:hover .card-img {
  transform: scale(1.06);
}

/* Card Content Details */
.card-details {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 34px;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-amount-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--cod-gold-light);
}

.card-perk-snippet {
  font-size: 10.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 10px;
}

/* Clean Modern Action Button */
.btn-claim,
.btn-requisition {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 8px 12px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-claim:hover,
.btn-requisition:hover {
  background: var(--cod-gold);
  border-color: var(--cod-gold);
  color: #000000;
  box-shadow: 0 4px 14px var(--cod-gold-glow);
}

.btn-claim:active,
.btn-requisition:active {
  transform: scale(0.98);
}

/* Empty Search State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
}

.empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.empty-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 16px 36px;
  background: rgba(5, 7, 10, 0.85);
  margin-top: auto;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-logo {
  height: 20px;
  width: auto;
  opacity: 0.7;
}

.footer-legal {
  font-size: 10.5px;
  color: #475569;
  line-height: 1.5;
}

/* ==========================================================================
   Modal Dialog (COD HQ Stealth Glass)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  background: #0d121c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.modal-header-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--cod-gold);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.modal-body {
  padding: 18px 20px;
}

/* Item Preview Inside Modal */
.selected-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.item-preview-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.6) 0%, rgba(10, 14, 22, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.item-preview-thumb img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.item-preview-details {
  flex: 1;
}

.item-preview-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.item-preview-meta {
  font-size: 11px;
  color: var(--cod-gold-light);
  margin-top: 2px;
  display: block;
}

/* Form Controls */
.form-group {
  margin-bottom: 14px;
}

.input-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input-field-wrap {
  width: 100%;
}

.text-input, .select-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.text-input:focus, .select-input:focus {
  border-color: var(--cod-gold);
  box-shadow: 0 0 0 2px var(--cod-gold-glow);
  background: rgba(0, 0, 0, 0.7);
}

.text-input::placeholder {
  color: var(--text-muted);
}

.input-help-text {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.35;
}

.input-help-text strong {
  color: var(--text-secondary);
}

.error-banner {
  display: none;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 6px;
  padding: 6px 10px;
  color: #fca5a5;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
}

/* Primary Action CTA */
.btn-primary-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  color: #000000;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--cod-gold-glow);
  transition: all 0.2s ease;
  margin-top: 6px;
}

.btn-primary-action:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

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

/* Stage 2: Uplink Radar */
.uplink-scanner-box {
  text-align: center;
  padding: 16px 0 12px;
}

.radar-circle {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border-top: 2px solid var(--cod-gold);
  animation: radarSpin 1.2s linear infinite;
}

@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.uplink-status-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #ffffff;
}

.uplink-status-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  transition: width 0.4s ease;
}

.terminal-log {
  background: #06090e;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  max-height: 110px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #94a3b8;
}

.log-line {
  margin-bottom: 4px;
}

/* Stage 3: Clearance Locker */
.locker-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.locker-banner-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.locker-banner-text h4 {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--cod-gold-light);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.locker-banner-text p {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.timer-badge-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  padding: 6px 12px;
  margin-bottom: 12px;
}

.timer-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.timer-clock {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--cod-gold);
}

/* Live Offers Container */
.offers-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  max-height: 250px;
  overflow-y: auto;
}

.offer-card {
  display: block;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  transition: all 0.2s ease;
}

.offer-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

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

.offer-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.offer-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-info-col {
  flex: 1;
  overflow: hidden;
}

.offer-title-text {
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offer-desc-text {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offer-instruction-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.08);
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 10px;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.offer-cta-row {
  display: flex;
  justify-content: flex-end;
}

.offer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--cod-gold-light);
}

.btn-secondary-check {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-check:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Full Mobile Framing & Responsive Layout (< 520px)
   ========================================================================== */
@media (max-width: 520px) {
  html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .app-shell {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .app-content {
    padding: 8px 10px 24px;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-showcase {
    border-radius: 12px;
    margin-bottom: 10px;
  }

  .hero-inner {
    padding: 12px 12px 10px;
    min-height: 140px;
  }

  .hero-heading {
    font-size: 19px;
    line-height: 1.15;
    margin-bottom: 3px;
  }

  .hero-subheading {
    font-size: 11px;
    margin-bottom: 8px;
    max-width: 100%;
  }

  .hero-ticker {
    padding: 5px 8px;
    font-size: 10.5px;
    gap: 6px;
  }

  .ticker-label {
    display: none;
  }

  .toolbar-section {
    gap: 8px;
    margin-bottom: 12px;
  }

  .cat-pill {
    padding: 5px 10px;
    font-size: 11.5px;
  }

  .search-bar-wrap {
    height: 38px;
    padding: 0 10px;
  }

  .store-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .store-card {
    border-radius: 10px;
    min-width: 0;
  }

  .card-tier-badge {
    top: 6px;
    left: 6px;
    font-size: 8.5px;
    padding: 1px 5px;
  }

  .card-type-tag {
    top: 6px;
    right: 6px;
    font-size: 8px;
    padding: 1px 4px;
  }

  .card-details {
    padding: 8px;
  }

  .card-title {
    font-size: 11.5px;
    height: 28px;
    margin-bottom: 2px;
    line-height: 1.2;
  }

  .card-amount-tag {
    font-size: 10px;
  }

  .card-perk-snippet {
    font-size: 9.5px;
    margin-bottom: 6px;
  }

  .btn-claim,
  .btn-requisition {
    padding: 6px 4px;
    font-size: 11px;
    border-radius: 6px;
    letter-spacing: 0.3px;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .modal-card {
    max-width: 100%;
    border-radius: 14px;
  }

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

  .modal-body {
    padding: 14px 14px;
  }

  .selected-item-card {
    padding: 8px 10px;
    gap: 10px;
    margin-bottom: 12px;
  }

  .item-preview-thumb {
    width: 44px;
    height: 44px;
  }

  .item-preview-name {
    font-size: 13px;
  }
}
