/*!
 * FlynetPWA
 * Copyright 2025 Kirill Krasin
 */
html {
    overflow: scroll;
    overflow-x: hidden;
}
::-webkit-scrollbar {
    width: 0;
    background: transparent;
}
.safe-area {
    height: env(safe-area-inset-top);
}
.app-menu{
    background: rgba(255, 255, 255, 0.1)!important;
    -webkit-backdrop-filter: blur(12px)!important;
    backdrop-filter: blur(12px)!important;
}
.pin-bg {
    background: rgba(33, 62, 164, 1);
}
.from-telegram-blue {
    --tw-gradient-from: rgba(0, 136, 204, .75);
    --tw-gradient-to: rgba(0, 136, 204, 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-telegram-light {
    --tw-gradient-to: rgba(42, 171, 238, .75);
}
.text-telegram-blue {
    color: #0088cc;
}
.modal.fade {
    background: rgba(0, 0, 0, .25);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    will-change: opacity;
    animation: underlay-in .2s ease;
}
@keyframes underlay-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-container {
    animation: modal-in .3s ease;
}
@keyframes modal-in {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}
.card { 
    transition: all 0.3s ease; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
[x-cloak] { display: none !important; }
.tab-active {
    border-bottom: 3px solid #3b82f6;
    color: #3b82f6;
    font-weight: 600;
}
.payment-row:hover {
    background-color: #f9fafb;
}
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #2563eb;
}
input:checked + .slider:before {
  transform: translateX(22px);
}
input:focus + .slider {
  box-shadow: 0 0 1px #2563eb;
}
@media (max-width: 767px) {
    .mobile-tab-active {
        color: #3b82f6;
    }
}
.account-switcher {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}
.account-switcher.open {
    max-height: 500px;
}
.pin-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
/*! login */
.shake-animation { animation: shake 0.5s; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
.account-card {
    transition: all 0.3s ease;
    cursor: pointer;
}
.account-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
/*! pin-auth */
.pin-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #d1d5db;
    transition: all 0.1s ease;
}
.pin-dot.filled {
    background-color: #3b82f6;
    transform: scale(1.2);
}
.num-key {
    transition: all 0.1s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 500;
    height: 60px;
}
.num-key:active {
    transform: scale(0.95);
    background-color: #f3f4f6;
}
.shake {
    animation: shake 0.5s;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}