@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-color: #050505;
    --surface-color: #0f1115;
    --surface-accent: #161a20;
    --primary-color: #00d4ff;
    --primary-glow: rgba(0, 212, 255, 0.4);
    --secondary-color: #7000ff;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-red: #ff3e3e;
    --accent-green: #00ff88;

    /* Gaps & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --gap-sm: 10px;
    --gap-md: 20px;
    --gap-lg: 40px;

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-primary: 0 0 20px var(--primary-glow);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    padding: 0 10px;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(15, 17, 21, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.neon-text {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--gap-md);
}

/* Header & Nav */
header {
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.nav-right {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.nav-right nav {
    display: flex;
    align-items: center;
}

.search-container {
    flex: 1;
    max-width: 600px;
    position: relative;
    display: flex;
    justify-content: center;
    margin: 0 40px 0 40px;
}

#search-form {
    width: 100%;
}

.mobile-nav-toggle {
    display: none !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    align-items: center;
    justify-content: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo .dot {
    height: 8px;
    width: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 15px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 8px;
    z-index: 1001;
    margin-top: 15px;
    flex-direction: column;
    gap: 2px;
}

/* Triangle Indicator */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(255, 255, 255, 0.1);
}

/* Invisible Bridge (Prevents menu closing) */
.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.nav-menu li:hover .dropdown-menu,
.dropdown-menu.show {
    display: flex;
    animation: slideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-menu.show::before {
    left: auto;
    right: 20px;
    transform: none;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(10px) translateX(-50%);
    }

    to {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
}

/* For right-aligned dropdowns on PC/Tablet */
@media (min-width: 769px) {

    #notif-dropdown,
    #profile-dropdown {
        left: auto !important;
        transform: none !important;
    }

    #notif-dropdown::before,
    #profile-dropdown::before {
        left: auto !important;
        right: 15px !important;
        transform: none !important;
    }
}

@media (max-width: 768px) {
    #notif-dropdown {
        width: auto !important;
        left: 20px !important;
        right: 20px !important;
        position: fixed !important;
        top: 75px !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        transform: none !important;
    }

    #profile-dropdown {
        width: 220px !important;
        right: 0 !important;
        left: auto !important;
    }
}

@keyframes slideUpFadeSimple {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#notif-dropdown.show,
#profile-dropdown.show {
    display: flex;
    animation: slideUpFadeSimple 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Premium Header Elements */
.notif-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.notif-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-color) !important;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent-red);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    box-shadow: 0 0 10px rgba(255, 62, 62, 0.3);
}

.profile-btn-premium {
    transition: all 0.3s ease;
}

.profile-btn-premium:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-1px);
}

#profile-dropdown {
    left: auto;
    right: 0;
    transform: none;
}

#profile-dropdown::before {
    left: auto;
    right: 15px;
    transform: none;
}

.dropdown-item.unread {
    background: rgba(0, 212, 255, 0.05) !important;
    border-left: 3px solid var(--primary-color) !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1rem;
    transition: transform 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--primary-color);
    transform: translateX(4px);
}

.dropdown-item:hover i {
    transform: scale(1.1);
    text-shadow: 0 0 8px var(--primary-glow);
}

/* Buttons */
.btn {
    padding: 10px 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

/* Featured Slider */
.featured-slider>div {
    flex: 0 0 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    scroll-snap-align: start;
    transition: transform 0.3s;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }

    .search-container {
        margin: 0 30px !important;
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        display: none !important;
    }

    .mobile-nav-toggle {
        display: flex !important;
    }

    :root {
        --gap-lg: 30px;
    }

    header {
        height: 70px;
    }

    .search-container {
        display: flex !important;
        flex: 1;
        margin: 0 10px !important;
        max-width: 320px;
    }
}


@media (max-width: 768px) {
    :root {
        --gap-lg: 25px;
    }

    .nav-left,
    .nav-right {
        gap: 8px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .search-container {
        display: none !important;
    }

    .container {
        padding: 0 var(--gap-md);
    }

    /* Tipografía Hero */
    h1 {
        font-size: 2.2rem !important;
    }

    .hero {
        padding: 60px 0 !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    /* Botones en móviles */
    .hero .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px !important;
    }

    .btn:not(.mobile-nav-toggle):not(.header-auth-buttons .btn):not(.btn-action) {
        width: 100%;
        justify-content: center;
    }

    .nav-actions {
        gap: 8px;
    }

    /* Compact profile button on mobile */
    .profile-btn-premium span,
    .profile-btn-premium .fa-chevron-down {
        display: none !important;
    }

    .profile-btn-premium {
        padding: 4px !important;
        border-radius: 50% !important;
    }

    .notif-link {
        width: 35px;
        height: 35px;
    }

    .notif-link i {
        font-size: 1.1rem !important;
    }

    .header-auth-buttons {
        gap: 8px;
    }

    .header-auth-buttons .btn {
        padding: 8px 12px;
        min-width: 40px;
        justify-content: center;
    }

    .header-auth-buttons .auth-text {
        display: none;
    }

    .header-auth-buttons .auth-icon {
        display: inline-block !important;
        font-size: 1.1rem;
    }

    /* Mobile Menu Toggle - Already shown at 1024px */

    /* Stats Grid fix */
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
        padding: 20px !important;
    }

    .featured-slider>div {
        flex: 0 0 180px !important;
    }

    .featured-slider .app-icon {
        height: 110px !important;
    }

    .featured-slider h4 {
        font-size: 0.85rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .featured-slider p {
        font-size: 0.7rem !important;
    }

    .featured-slider .btn {
        padding: 6px !important;
        font-size: 0.75rem !important;
    }

    .section-header {
        text-align: center;
        justify-content: center !important;
    }

    .section-header div {
        margin-bottom: 10px;
    }

    /* Fixed 2 columns for content grids on very small screens */
    .responsive-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .responsive-grid .card-hover img {
        height: 110px !important;
    }

    .responsive-grid .card-hover h4 {
        font-size: 0.85rem !important;
        margin-bottom: 2px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .responsive-grid .card-hover span,
    .responsive-grid .card-hover a {
        font-size: 0.7rem !important;
    }

    .responsive-grid .card-hover div[style*="padding: 15px"] {
        padding: 10px !important;
    }
}

@media (max-width: 580px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    .search-container {
        display: none !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem !important;
    }
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gap-md);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-grid div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Mobile Menu Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--surface-color);
    z-index: 3000;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-links a i {
    color: var(--primary-color);
    width: 20px;
}

.mobile-submenu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.mobile-submenu {
    display: none;
    list-style: none;
    padding-left: 35px;
    margin-top: 10px;
    flex-direction: column;
    gap: 15px;
}

.mobile-submenu.active {
    display: flex;
}

.mobile-submenu a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    pointer-events: none;
    width: 100%;
}

.toast {
    background: rgba(18, 20, 24, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 24px;
    border-radius: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 320px;
    max-width: 450px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}

.toast.active {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border: 1px solid rgba(0, 255, 136, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 255, 136, 0.1);
}

.toast.error {
    border: 1px solid rgba(255, 62, 62, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 62, 62, 0.1);
}

.toast.warning {
    border: 1px solid rgba(255, 184, 0, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 184, 0, 0.1);
}

.toast-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.toast.error .toast-icon {
    background: rgba(255, 62, 62, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(255, 62, 62, 0.2);
}

.toast.warning .toast-icon {
    background: rgba(255, 184, 0, 0.15);
    color: #ffb800;
    border: 1px solid rgba(255, 184, 0, 0.2);
}

.toast-message {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.toast-action-btn {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 10px;
}

.toast-action-btn:hover {
    transform: scale(1.05);
    background: white;
}

.toast-action-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.toast-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.toast.info {
    border: 1px solid rgba(0, 212, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 212, 255, 0.1);
}

.toast.info .toast-icon {
    background: rgba(0, 212, 255, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* App Card Design (Store Style) */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.app-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.app-card .app-icon {
    width: 110px;
    height: 110px;
    border-radius: 24px;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    background: #111;
}

.app-card .app-title {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.app-card .app-v {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.app-card .uploader-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    max-width: 100%;
}

.app-card .uploader-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-card .app-dev {
    color: var(--text-secondary);
    font-size: 0.75rem;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-card .uploader-verify {
    color: var(--primary-color);
    font-size: 0.65rem;
    filter: drop-shadow(0 0 2px var(--primary-glow));
    flex-shrink: 0;
}

.app-card .app-stars {
    color: #ffb800;
    font-size: 0.75rem;
    display: flex;
    gap: 3px;
}

.app-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 5;
}

/* App Card Footer Integration */
.app-card-footer {
    width: calc(100% + 30px);
    margin: 15px -15px -20px -15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 0 28px 28px;
    transition: all 0.3s ease;
}

.app-card:hover .app-card-footer {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.1);
}

.download-date-tag-inside {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
    position: relative; /* Base for tooltip */
    user-select: none;
}

.app-card:hover .download-date-tag-inside {
    background: var(--primary-color);
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Premium Tooltip System */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before,
[data-tooltip]::after {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    pointer-events: none;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
}

/* Tooltip Bubble */
[data-tooltip]::before {
    content: attr(data-tooltip);
    bottom: calc(100% + 12px);
    background: rgba(18, 20, 24, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 12px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    letter-spacing: 0.3px;
}

/* Tooltip Arrow */
[data-tooltip]::after {
    content: '';
    bottom: calc(100% + 6px);
    border: 6px solid transparent;
    border-top-color: rgba(18, 20, 24, 0.95);
}

/* Tooltip Hover States */
[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .app-card {
        padding: 15px 12px;
        border-radius: 22px;
    }

    .app-card .app-icon {
        width: 85px;
        height: 85px;
        border-radius: 20px;
        margin-bottom: 12px;
    }

    .app-card .app-title {
        font-size: 0.9rem;
    }
}

/* Premium Confirmation Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.confirm-modal {
    background: rgba(20, 22, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .confirm-modal {
    transform: scale(1);
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: all 0.3s ease;
}

.modal-icon.primary {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.modal-icon.success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
    border-color: rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.modal-icon.danger {
    background: rgba(255, 62, 62, 0.1);
    color: var(--accent-red);
    border-color: rgba(255, 62, 62, 0.2);
    box-shadow: 0 0 20px rgba(255, 62, 62, 0.1);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.modal-message {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.modal-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 25px;
    min-width: 100px;
}

.modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-btn-confirm {
    background: var(--primary-color);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
    padding: 12px 25px;
    min-width: 120px;
}

.modal-btn-confirm.success {
    background: var(--accent-green);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
    color: black;
}

.modal-btn-confirm.danger {
    background: var(--accent-red);
    box-shadow: 0 4px 15px rgba(255, 62, 62, 0.2);
}

.modal-btn-confirm:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}/* --- Upload Progress Overlay --- */
.upload-progress-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 99999;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: var(--gap-lg);
    transition: all 0.4s ease;
}

.upload-progress-overlay.active {
    display: flex;
    animation: fadeInProgress 0.4s ease;
}

.upload-progress-container {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.upload-progress-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.upload-progress-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.upload-progress-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.progress-bar-wrapper {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 20px;
    box-shadow: 0 0 15px var(--primary-glow);
    transition: width 0.3s cubic-bezier(0.1, 0.5, 0.5, 1);
}

.progress-percentage {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-variant-numeric: tabular-nums;
}

.progress-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
}

@keyframes fadeInProgress {
    from { opacity: 0; backdrop-filter: blur(0); }
    to { opacity: 1; backdrop-filter: blur(15px); }
}
