/* ============================================================================
   ALLYONOS CUSTOM STYLES
   Powered by TailwindCSS (CDN) + Custom Overrides
   ============================================================================ */

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f3f4f6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Hide scrollbar for a clean, app-like UI */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* ============================================================================
   TABS
   ============================================================================ */
.tab-active {
    background-color: #2563eb;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tab-inactive {
    background-color: #f3f4f6;
    color: #4b5563;
}

.tab-inactive:hover {
    background-color: #e5e7eb;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn-hover {
    transition: all 0.2s ease-in-out;
}

.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-hover:active {
    transform: translateY(0);
}

.download-btn {
    background: linear-gradient(to bottom, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.4);
    border: 1px solid #15803d;
}

.download-btn:active {
    background: #16a34a;
    transform: scale(0.95);
}

.warning-btn {
    background: linear-gradient(to bottom, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.4);
    border: 1px solid #b91c1c;
}

.warning-btn:active {
    background: #dc2626;
    transform: scale(0.95);
}

/* ============================================================================
   GAME CARDS & BADGES
   ============================================================================ */
.app-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    transition: all 0.2s ease;
}

.app-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.rank-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: #1f2937;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hot-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(to right, #f97316, #ef4444);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
    animation: pulse-hot 2s infinite;
}

@keyframes pulse-hot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================================================
   PROMO MARQUEE
   ============================================================================ */
.marquee-container {
    background: linear-gradient(to right, #065f46, #047857);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee-wrapper {
    display: flex;
    width: 200%;
}

.promo-slide {
    animation: marquee 15s linear infinite;
}

.marquee-text {
    flex-shrink: 0;
    width: 100%;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* ============================================================================
   FLOATING SOCIAL SPEED-DIAL
   ============================================================================ */
/* ============================================================================
   FIXED SOCIAL SIDEBAR (replaces old FAB)
   ============================================================================ */
.social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: transparent;
    border-radius: 14px 0 0 14px;
    padding: 6px 4px 6px 4px;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
}

/* ── GIF wrapper ── */
.sidebar-gif-wrap {
    display: block;
    width: 48px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 4px;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(245,158,11,0.5);
    animation: gif-pulse 2.5s ease-in-out infinite;
    background: #000;
}
.sidebar-gif-wrap:hover { transform: scale(1.08); }
.sidebar-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
@keyframes gif-pulse {
    0%,100% { box-shadow: 0 2px 12px rgba(245,158,11,0.5); }
    50%      { box-shadow: 0 2px 22px rgba(245,158,11,0.9), 0 0 30px rgba(239,68,68,0.5); }
}

/* ── Base icon ── */
.sidebar-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    margin: 4px 0;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease;
    will-change: transform;
    flex-shrink: 0;
    position: relative;
}
.sidebar-icon svg { width:16px; height:16px; flex-shrink:0; }

/* Tooltip label on hover (desktop) */
.sidebar-icon::after {
    content: attr(title);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: rgba(10,10,20,0.92);
    color: #fff;
    font-size: 0.72rem;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.sidebar-icon:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ── Telegram ── */
.sidebar-tg {
    background: radial-gradient(circle at 30% 30%, #29b6f6, #0088cc 60%, #006699);
    box-shadow: 0 3px 12px rgba(0,136,204,0.5);
    animation: tg-float 3s ease-in-out infinite;
}
.sidebar-tg i { display:inline-block; animation: tg-wiggle 3s ease-in-out infinite; }
.sidebar-tg:hover {
    transform: translateX(-4px) rotate(-12deg) scale(1.2);
    box-shadow: 0 8px 24px rgba(0,136,204,0.9), 0 0 30px rgba(41,182,246,0.5);
}
.sidebar-tg:hover i { animation: tg-launch 0.6s ease-out forwards; }

/* ── X / Twitter ── */
.sidebar-x {
    background: #111;
    box-shadow: 0 3px 12px rgba(0,0,0,0.6);
    animation: x-glitch-idle 4s steps(1) infinite;
}
.sidebar-x:hover {
    transform: translateX(-4px) scale(1.2) rotate(-15deg);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.15), 0 8px 24px rgba(255,255,255,0.2);
    animation: x-glitch 0.5s steps(1) infinite;
}

/* ── YouTube ── */
.sidebar-yt {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    box-shadow: 0 3px 12px rgba(255,0,0,0.5);
    animation: yt-pulse 2.2s ease-in-out infinite;
}
.sidebar-yt:hover {
    transform: translateX(-4px) scale(1.2);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.12), 0 8px 24px rgba(255,0,0,0.85);
    animation: yt-shake 0.4s linear infinite;
}
.sidebar-yt:hover i { transform: scale(1.3); }

/* ── Facebook ── */
.sidebar-fb {
    background: linear-gradient(145deg, #1877f2, #0d5cc4);
    box-shadow: 0 3px 12px rgba(24,119,242,0.5);
    animation: fb-bob 3s ease-in-out infinite;
}
.sidebar-fb:hover {
    transform: translateX(-4px) scale(1.2);
    box-shadow: 0 8px 24px rgba(24,119,242,0.85);
    animation: fb-flip 0.9s ease-in-out;
}

/* ── Instagram ── */
.sidebar-ig {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 3px 12px rgba(220,39,67,0.5);
    animation: ig-spin-bg 8s linear infinite;
}
.sidebar-ig:hover {
    transform: translateX(-4px) scale(1.2);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.15), 0 8px 24px rgba(220,39,67,0.8);
    animation: ig-spin-bg 1.2s linear infinite;
}
.sidebar-ig:hover i { transform: scale(1.2) rotate(-8deg); }

/* ── Scroll to top ── */
.sidebar-top {
    background: rgba(10,10,20,0.88);
    box-shadow: 0 2px 12px rgba(0,0,0,0.55);
    flex-direction: column;
    gap: 1px;
    margin-top: 6px;
    font-size: 0.6rem;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.2s ease;
}
.sidebar-top:hover {
    background: rgba(20,20,40,0.95);
    transform: translateX(-4px) scale(1.1);
}
.sidebar-top-label {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}
.sidebar-top i { font-size: 0.7rem; }

/* Mobile: make icons slightly smaller, no tooltips */
@media (max-width: 480px) {
    .social-sidebar {
        top: auto;
        bottom: 16px;
        transform: none;
        border-radius: 14px 0 0 14px;
        padding: 5px 3px;
        gap: 0;
    }
    .sidebar-icon { width: 36px; height: 36px; font-size: 0.9rem; margin: 3px 0; }
    .sidebar-gif-wrap { width: 36px; height: 36px; }
    .sidebar-icon::after { display: none; }
}

@keyframes yt-shake {
    0%   { transform: translateX(-4px) scale(1.2) translate(1px, 0); }
    25%  { transform: translateX(-4px) scale(1.2) translate(-1px, 1px); }
    50%  { transform: translateX(-4px) scale(1.2) translate(1px, -1px); }
    75%  { transform: translateX(-4px) scale(1.2) translate(-1px, 0); }
    100% { transform: translateX(-4px) scale(1.2) translate(0, 1px); }
}

/* ============================================================================
   FOOTER SOCIAL ICONS — UNIQUE CRAZY ANIMATIONS PER PLATFORM
   ============================================================================ */
.footer-social-row {
    perspective: 600px;
}

.social-icon {
    position: relative;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    will-change: transform;
}

.social-icon svg { width: 18px; height: 18px; }
.social-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: -1;
    transition: all 0.4s ease;
}

/* ── TELEGRAM — paper plane launch + glow pulse ── */
.social-tg {
    background: radial-gradient(circle at 30% 30%, #29b6f6, #0088cc 60%, #006699);
    box-shadow: 0 4px 14px rgba(0, 136, 204, 0.5), inset 0 -2px 4px rgba(0,0,0,0.2);
    animation: tg-float 3s ease-in-out infinite;
}
.social-tg i {
    display: inline-block;
    animation: tg-wiggle 3s ease-in-out infinite;
}
.social-tg:hover {
    transform: translateY(-6px) rotate(-12deg) scale(1.15);
    box-shadow: 0 12px 30px rgba(0, 136, 204, 0.9), 0 0 40px rgba(41, 182, 246, 0.6);
}
.social-tg:hover i {
    animation: tg-launch 0.6s ease-out forwards;
}
@keyframes tg-float {
    0%, 100% { box-shadow: 0 4px 14px rgba(0,136,204,0.5), inset 0 -2px 4px rgba(0,0,0,0.2); }
    50%      { box-shadow: 0 4px 22px rgba(41,182,246,0.85), inset 0 -2px 4px rgba(0,0,0,0.2); }
}
@keyframes tg-wiggle {
    0%, 100% { transform: rotate(-10deg) translateX(-1px); }
    50%      { transform: rotate(0deg) translateX(2px); }
}
@keyframes tg-launch {
    0%   { transform: rotate(-10deg) translate(0, 0); opacity: 1; }
    60%  { transform: rotate(20deg) translate(14px, -14px); opacity: 0; }
    61%  { transform: rotate(-30deg) translate(-14px, 14px); opacity: 0; }
    100% { transform: rotate(-10deg) translate(0, 0); opacity: 1; }
}

/* ── INSTAGRAM — rainbow gradient spin + heart burst ── */
.social-ig {
    background: conic-gradient(from 0deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888, #f09433);
    box-shadow: 0 4px 14px rgba(220, 39, 67, 0.5);
    animation: ig-spin-bg 8s linear infinite;
}
.social-ig i {
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    transition: transform 0.4s ease;
}
.social-ig:hover {
    animation: ig-spin-bg 1.2s linear infinite, ig-shake 0.5s ease-in-out;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.15), 0 12px 30px rgba(220, 39, 67, 0.8), 0 0 40px rgba(240, 148, 51, 0.6);
    transform: scale(1.18);
}
.social-ig:hover i {
    transform: scale(1.25) rotate(-8deg);
}
@keyframes ig-spin-bg {
    to { filter: hue-rotate(360deg); }
}
@keyframes ig-shake {
    0%, 100% { transform: scale(1.18) rotate(0deg); }
    25%      { transform: scale(1.18) rotate(-6deg); }
    75%      { transform: scale(1.18) rotate(6deg); }
}

/* ── YOUTUBE — TV static / shake + red pulse ── */
.social-yt {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.5);
    animation: yt-pulse 2.2s ease-in-out infinite;
}
.social-yt i {
    transition: transform 0.3s ease;
}
.social-yt:hover {
    animation: yt-shake 0.4s linear infinite;
    box-shadow: 0 0 0 5px rgba(255,255,255,0.12), 0 12px 30px rgba(255, 0, 0, 0.85), 0 0 50px rgba(255, 80, 80, 0.7);
    transform: scale(1.18);
}
.social-yt:hover i {
    transform: scale(1.4);
    animation: yt-play 0.8s ease-in-out infinite;
}
@keyframes yt-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(255,0,0,0.5); }
    50%      { box-shadow: 0 4px 22px rgba(255,0,0,0.9), 0 0 30px rgba(255,80,80,0.5); }
}
@keyframes yt-shake {
    0%   { transform: scale(1.18) translate(1px, 0); }
    25%  { transform: scale(1.18) translate(-1px, 1px); }
    50%  { transform: scale(1.18) translate(1px, -1px); }
    75%  { transform: scale(1.18) translate(-1px, 0); }
    100% { transform: scale(1.18) translate(0, 1px); }
}
@keyframes yt-play {
    0%, 100% { transform: scale(1.4); }
    50%      { transform: scale(1.55); }
}

/* ── FACEBOOK — 3D coin flip ── */
.social-fb {
    background: linear-gradient(145deg, #1877f2, #0d5cc4);
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.5);
    animation: fb-bob 3s ease-in-out infinite;
}
.social-fb:hover {
    animation: fb-flip 0.9s ease-in-out;
    box-shadow: 0 12px 30px rgba(24, 119, 242, 0.85), 0 0 40px rgba(80, 150, 255, 0.6);
}
@keyframes fb-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}
@keyframes fb-flip {
    0%   { transform: rotateY(0deg) scale(1); }
    50%  { transform: rotateY(180deg) scale(1.25); }
    100% { transform: rotateY(360deg) scale(1.15); }
}

/* ── X / TWITTER — glitch effect + rotate ── */
.social-x {
    background: linear-gradient(135deg, #1a1a1a, #000);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255,255,255,0.08);
    animation: x-glitch-idle 4s steps(1) infinite;
}
.social-x svg {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.social-x:hover {
    transform: scale(1.18) rotate(-15deg);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.15), 0 12px 30px rgba(255,255,255,0.25), 0 0 40px rgba(255,255,255,0.3);
    animation: x-glitch 0.5s steps(1) infinite;
}
.social-x:hover svg {
    transform: rotate(360deg) scale(1.2);
}
@keyframes x-glitch-idle {
    0%, 95%, 100% { filter: none; }
    96%           { filter: hue-rotate(90deg) drop-shadow(2px 0 #ff00ea) drop-shadow(-2px 0 #00fff0); }
    97%           { filter: none; }
    98%           { filter: drop-shadow(-1px 0 #ff00ea) drop-shadow(1px 0 #00fff0); }
}
@keyframes x-glitch {
    0%   { filter: drop-shadow(2px 0 #ff00ea) drop-shadow(-2px 0 #00fff0); }
    25%  { filter: drop-shadow(-2px 0 #ff00ea) drop-shadow(2px 0 #00fff0); }
    50%  { filter: drop-shadow(0 2px #ff00ea) drop-shadow(0 -2px #00fff0); }
    75%  { filter: drop-shadow(2px -2px #ff00ea) drop-shadow(-2px 2px #00fff0); }
    100% { filter: drop-shadow(0 0 #fff); }
}

/* ── PINTEREST — bouncing pin + drop ── */
.social-pin {
    background: radial-gradient(circle at 35% 30%, #ff3344, #e60023 60%, #b30019);
    box-shadow: 0 4px 14px rgba(230, 0, 35, 0.5);
    animation: pin-bounce 2.5s ease-in-out infinite;
}
.social-pin i {
    transition: transform 0.4s ease;
}
.social-pin:hover {
    animation: pin-drop 0.8s ease-in-out;
    box-shadow: 0 18px 30px rgba(230, 0, 35, 0.85), 0 0 40px rgba(255, 100, 100, 0.6);
}
.social-pin:hover i {
    transform: scale(1.3) rotate(360deg);
}
@keyframes pin-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-4px) scale(1.03); }
}
@keyframes pin-drop {
    0%   { transform: translateY(0) scale(1); }
    30%  { transform: translateY(-14px) scale(1.15); }
    55%  { transform: translateY(6px) scale(0.92, 1.08); }
    75%  { transform: translateY(-4px) scale(1.05); }
    100% { transform: translateY(0) scale(1.18); }
}

/* Stagger entrance */
.footer-social-row .social-icon { animation-delay: 0s; }
.footer-social-row .social-icon:nth-child(1) { animation-delay: 0s; }
.footer-social-row .social-icon:nth-child(2) { animation-delay: 0.3s; }
.footer-social-row .social-icon:nth-child(3) { animation-delay: 0.6s; }
.footer-social-row .social-icon:nth-child(4) { animation-delay: 0.9s; }
.footer-social-row .social-icon:nth-child(5) { animation-delay: 1.2s; }
.footer-social-row .social-icon:nth-child(6) { animation-delay: 1.5s; }

@media (prefers-reduced-motion: reduce) {
    .social-icon, .social-icon i, .social-icon svg { animation: none !important; transition: none !important; }
}

/* ============================================================================
   PAGE VISIBILITY (SPA routing)
   ============================================================================ */
.page-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================================
   STARTUP POPUP OVERLAY
   ============================================================================ */
#startup-popup {
    display: none;
}

#startup-popup.active {
    display: flex;
}

/* ============================================================================
   ADMIN PANEL TABS
   ============================================================================ */
.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* Tailwind arbitrary-value classes (not generated by CLI purge) */
.text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.min-w-\[80px\] { min-width: 80px; }
.min-h-\[48px\] { min-height: 48px; }
.min-h-\[300px\] { min-height: 300px; }
.after\:top-\[2px\]::after { top: 2px; }
.after\:left-\[2px\]::after { left: 2px; }
@media (min-width: 768px) {
  .md\:min-w-\[100px\] { min-width: 100px; }
}