/* VPN App — Custom Animations */

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* VPN Button breathing animations */
@keyframes breathe-off {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.0), inset 0 1px 1px rgba(255,255,255,0.05); }
  50% { box-shadow: 0 0 18px 4px rgba(255,255,255,0.04), inset 0 1px 1px rgba(255,255,255,0.07); }
}

@keyframes breathe-connecting {
  0%, 100% { box-shadow: 0 0 20px 6px rgba(10,132,255,0.20), 0 0 60px 15px rgba(10,132,255,0.08), inset 0 1px 1px rgba(255,255,255,0.08); }
  50% { box-shadow: 0 0 32px 12px rgba(10,132,255,0.35), 0 0 80px 25px rgba(10,132,255,0.15), inset 0 1px 1px rgba(255,255,255,0.12); }
}

@keyframes breathe-connected {
  0%, 100% { box-shadow: 0 0 24px 8px rgba(48,209,88,0.22), 0 0 70px 20px rgba(48,209,88,0.08), inset 0 1px 1px rgba(255,255,255,0.08); }
  50% { box-shadow: 0 0 40px 16px rgba(48,209,88,0.38), 0 0 90px 30px rgba(48,209,88,0.16), inset 0 1px 1px rgba(255,255,255,0.14); }
}

@keyframes breathe-error {
  0%, 100% { box-shadow: 0 0 20px 6px rgba(255,59,48,0.20), inset 0 1px 1px rgba(255,255,255,0.06); }
  50% { box-shadow: 0 0 32px 12px rgba(255,59,48,0.32), inset 0 1px 1px rgba(255,255,255,0.10); }
}

@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fade-up-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.vpn-btn-off {
  animation: breathe-off 4s ease-in-out infinite;
}

.vpn-btn-connecting {
  animation: breathe-connecting 2s ease-in-out infinite;
}

.vpn-btn-connected {
  animation: breathe-connected 3s ease-in-out infinite;
}

.vpn-btn-error {
  animation: breathe-error 2.5s ease-in-out infinite;
}

.connecting-ring {
  animation: spin-ring 2.4s linear infinite;
}

.fade-up-in {
  animation: fade-up-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fade-in {
  animation: fade-in 0.3s ease-in-out both;
}

.slide-down {
  animation: slide-down 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pulse-dot {
  animation: pulse-dot 1.6s ease-in-out infinite;
}

/* Tab bar glass blur */
.tab-bar-glass {
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(18, 18, 22, 0.85);
  border: 1px solid rgba(255,255,255,0.07);
}

/* Card subtle inner glow */
.card-premium {
  background: #1A1A1F;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 4px 16px rgba(0,0,0,0.4);
}

.card-premium-elevated {
  background: #202027;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 8px 32px rgba(0,0,0,0.5);
}

/* Subscription alert card */
.alert-orange {
  background: linear-gradient(135deg, #1F1710 0%, #1A1208 100%);
  border: 1px solid rgba(255,159,10,0.20);
  box-shadow: 0 0 24px rgba(255,159,10,0.08), 0 1px 0 rgba(255,255,255,0.04) inset;
}

/* Scroll hiding */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Tap press effect */
.tap-scale {
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}
.tap-scale:active {
  transform: scale(0.95);
  opacity: 0.85;
}

.tap-scale-btn:active {
  transform: scale(0.90);
}

/* Input focus ring */
.input-field {
  background: #1E1E24;
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 250ms ease, box-shadow 250ms ease;
}

.input-field:focus-within {
  border-color: rgba(10,132,255,0.6);
  box-shadow: 0 0 0 3px rgba(10,132,255,0.12);
}

.input-field.error {
  border-color: rgba(255,159,10,0.5);
  box-shadow: 0 0 0 3px rgba(255,159,10,0.08);
}

/* Custom scrollbar for support FAQ */
.thin-scroll::-webkit-scrollbar { width: 2px; }
.thin-scroll::-webkit-scrollbar-track { background: transparent; }
.thin-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* Carousel dot */
.carousel-dot {
  transition: all 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
