/* Base Body & Primary Tactical Theme: «Гранит» (Black Camouflage & Золото) */
body, body.theme-granit {
  background-color: #0A0C0E;
  background-image: url('../assets/granit_black_bg.jpg') !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  background-position: center center !important;
  color: #F5F5F7;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.015em;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  position: relative;
}

body::before, body.theme-granit::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.15) !important;
  pointer-events: none;
  z-index: 0;
}

body.theme-granit .bg-tactical-dark,
body:not(.theme-multicam) .bg-tactical-dark,
#appContainer {
  background-color: transparent !important;
}

body.theme-granit .bg-tactical-bg,
body:not(.theme-multicam) .bg-tactical-bg {
  background-color: transparent !important;
}

/* 80% True Transparency for Liquid Glass blocks */
body.theme-granit .liquid-glass,
body:not(.theme-multicam) .liquid-glass,
.liquid-glass {
  background: rgba(14, 18, 24, 0.20) !important;
  backdrop-filter: blur(10px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 8px 30px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 0 rgba(255, 255, 255, 0.15) !important;
}

body.theme-granit .liquid-glass-gold,
body:not(.theme-multicam) .liquid-glass-gold,
.liquid-glass-gold {
  background: rgba(38, 30, 15, 0.22) !important;
  backdrop-filter: blur(10px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(160%) !important;
  border: 1px solid rgba(212, 175, 55, 0.35) !important;
  border-top: 1px solid rgba(255, 235, 170, 0.50) !important;
  box-shadow: 0 8px 30px 0 rgba(212, 175, 55, 0.10), inset 0 1px 0 0 rgba(255, 255, 255, 0.18) !important;
}

/* Ambient tactical glow backgrounds for glass refraction */
.ambient-glow {
  position: fixed;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(13, 15, 18, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-bottom {
  position: fixed;
  bottom: -10%;
  left: 45%;
  transform: translateX(-50%);
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(74, 93, 67, 0.14) 0%, rgba(13, 15, 18, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Liquid Glass Effect with 80% Transparency */

/* Tactical Adaptive Header Shield for Dynamic Island (iPhone 16 Pro Max / 15 / 14) */
.app-header {
  background-color: #0E1217;
  background-image: linear-gradient(180deg, #13171F 0%, #0A0C0E 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
}

/* Tactical Scanner & Radar effect */
@keyframes radarScan {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.25), 0 0 50px rgba(212, 175, 55, 0.1);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 45px rgba(212, 175, 55, 0.45), 0 0 80px rgba(212, 175, 55, 0.2);
    transform: scale(1.02);
  }
}

.animate-radar {
  animation: radarScan 4s linear infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Beautiful Apple-grade tab transition animations */
@keyframes tabSmoothEnter {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.988);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: tabSmoothEnter 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom tactical scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Tactical Theme Overrides (Мультикам с высокой видимостью текстуры) */
body.theme-multicam {
  background-image: url('../assets/multicam_bg.jpg') !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  background-position: center center !important;
}
body.theme-multicam::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.15) !important;
  pointer-events: none;
  z-index: 0;
}
body.theme-multicam .ambient-glow {
  background: radial-gradient(circle, rgba(185, 155, 95, 0.18) 0%, rgba(13, 15, 18, 0) 70%);
}
body.theme-multicam .ambient-glow-bottom {
  background: radial-gradient(circle, rgba(105, 125, 80, 0.20) 0%, rgba(13, 15, 18, 0) 70%);
}
body.theme-multicam .liquid-glass {
  background: rgba(18, 22, 16, 0.20) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(212, 185, 130, 0.28) !important;
  border-top: 1px solid rgba(245, 225, 175, 0.45) !important;
  box-shadow: 0 8px 28px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 0 rgba(255, 255, 255, 0.15) !important;
}
body.theme-multicam .liquid-glass-gold {
  background: rgba(38, 30, 15, 0.22) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(212, 175, 55, 0.45) !important;
  border-top: 1px solid rgba(255, 225, 130, 0.60) !important;
  box-shadow: 0 8px 28px 0 rgba(175, 145, 95, 0.15), inset 0 1px 0 0 rgba(255, 255, 255, 0.20) !important;
}
body.theme-multicam .bg-tactical-dark {
  background-color: transparent !important;
}
body.theme-multicam .bg-tactical-bg {
  background-color: transparent !important;
}

/* Pulsing / Blinking badge for fee payment status */
@keyframes feeBlink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    filter: drop-shadow(0 0 2px currentColor);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.96);
    filter: drop-shadow(0 0 0px transparent);
  }
}

.animate-fee-blink {
  animation: feeBlink 1.4s ease-in-out infinite;
  will-change: opacity, transform;
}
