/**
 * Apps Store Styles
 * Enhanced UI Design with Blue Theme
 * @version 2.1.0
 */

:root {
    --primary: #667eea;
    --primary-dark: #4c51bf;
    --primary-light: #a4cafe;
    --secondary: #764ba2;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --dark: #1a202c;
    --light: #f7fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --white: #ffffff;
    
    /* Enhanced gradient theme */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-hero: linear-gradient(96.44deg, #c5d5ff, #e2f0ff 51.56%, #d7d4ff);
    --gradient-navbar: linear-gradient(135deg, rgba(197, 213, 255, 0.95) 0%, rgba(226, 240, 255, 0.95) 50%, rgba(215, 212, 255, 0.95) 100%);
    
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

.showcase-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* ============ ENHANCED NAVIGATION BAR ============ */
.navbar {
    background: var(--gradient-navbar);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(167, 139, 250, 0.2);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(103, 126, 234, 0.15);
    transition: var(--transition);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.navbar-container {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.navbar-logo {
    max-width: 220px;
    height: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(103, 126, 234, 0.3));
}

.navbar-logo:hover {
    transform: scale(1.05) translateY(-2px);
    filter: drop-shadow(0 4px 12px rgba(103, 126, 234, 0.4));
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.navbar-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.navbar-btn:hover::before {
    left: 100%;
}

.navbar-btn.zalo {
    background: rgba(70, 130, 255, 0.15);
    color: #2563eb;
    border-color: rgba(70, 130, 255, 0.3);
    box-shadow: 0 4px 15px rgba(70, 130, 255, 0.2);
}

.navbar-btn.zalo:hover {
    background: rgba(70, 130, 255, 0.9);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(70, 130, 255, 0.4);
}

.navbar-btn.purchase {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary-dark);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.navbar-btn.purchase:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.5);
}

/* ============ ENHANCED HERO SECTION ============ */
.hero {
    background: var(--gradient-hero);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    color: var(--dark);
    padding: 100px 0 80px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-bottom: 60px;
}

@keyframes gradientShift {
    0%, 100% { 
        background-position: 0% 50%; 
        filter: hue-rotate(0deg);
    }
    33% { 
        background-position: 100% 50%; 
        filter: hue-rotate(5deg);
    }
    66% { 
        background-position: 50% 100%; 
        filter: hue-rotate(-5deg);
    }
}

/* ============ ENHANCED ANIMATED SHAPES ============ */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    animation: floatShape 25s infinite linear;
    backdrop-filter: blur(10px);
}

.hero-shape.app-icon {
    border-radius: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(103, 126, 234, 0.7);
    font-size: 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(103, 126, 234, 0.15);
}

.hero-shape.shape1 {
    width: 90px;
    height: 90px;
    top: 15%;
    left: 8%;
    background: rgba(103, 126, 234, 0.2);
    animation-duration: 28s;
    animation-delay: 0s;
}

.hero-shape.shape2 {
    width: 70px;
    height: 70px;
    top: 25%;
    right: 12%;
    background: rgba(118, 75, 162, 0.2);
    animation-duration: 32s;
    animation-delay: -5s;
}

.hero-shape.shape3 {
    width: 80px;
    height: 80px;
    top: 45%;
    right: 20%;
    background: rgba(16, 185, 129, 0.2);
    animation-duration: 36s;
    animation-delay: -10s;
}

.hero-shape.shape4 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    left: 15%;
    background: rgba(245, 158, 11, 0.2);
    animation-duration: 30s;
    animation-delay: -15s;
}

.hero-shape.shape5 {
    width: 75px;
    height: 75px;
    top: 35%;
    left: 45%;
    background: rgba(239, 68, 68, 0.2);
    animation-duration: 34s;
    animation-delay: -8s;
}

.hero-shape.shape6 {
    width: 85px;
    height: 85px;
    bottom: 20%;
    right: 35%;
    background: rgba(6, 182, 212, 0.2);
    animation-duration: 29s;
    animation-delay: -12s;
}

.hero-shape.shape7 {
    width: 95px;
    height: 95px;
    top: 60%;
    left: 25%;
    background: rgba(139, 92, 246, 0.15);
    animation-duration: 26s;
    animation-delay: -18s;
}

.hero-shape.shape8 {
    width: 65px;
    height: 65px;
    top: 20%;
    left: 70%;
    background: rgba(245, 158, 11, 0.15);
    animation-duration: 40s;
    animation-delay: -3s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-30px) translateX(15px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translateY(-15px) translateX(30px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translateY(-40px) translateX(8px) rotate(270deg) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: float 4s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(103, 126, 234, 0.2);
    color: var(--primary-dark);
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
    }
    50% { 
        transform: translateY(-12px) scale(1.02); 
    }
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
    min-height: 1.15em;
    text-shadow: 0 4px 20px rgba(103, 126, 234, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    opacity: 0.85;
    margin-bottom: 48px;
    font-weight: 400;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #4a5568;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    color: var(--primary-dark);
    padding: 18px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(103, 126, 234, 0.3);
    font-size: 1.1rem;
    border: 2px solid rgba(103, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition);
    z-index: -1;
}

.hero-btn:hover::before {
    left: 0;
}

.hero-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(103, 126, 234, 0.4);
    color: white;
    border-color: var(--primary);
}

/* ============ FILTERS SECTION ============ */
.filters-section {
    background: var(--white);
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 60px;
    box-shadow: var(--shadow-lg);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(103, 126, 234, 0.1);
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.filters-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
}

.search-box {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 18px 24px 18px 60px;
    border: 2px solid var(--gray-light);
    border-radius: 50px;
    font-size: 16px;
    transition: var(--transition);
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(103, 126, 234, 0.1), 0 4px 20px rgba(103, 126, 234, 0.15);
    transform: scale(1.02);
}

.search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1.2rem;
}

.category-select {
    padding: 18px 28px;
    border: 2px solid var(--gray-light);
    border-radius: 50px;
    font-size: 16px;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    min-width: 220px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(103, 126, 234, 0.1);
}

.clear-btn {
    padding: 18px 28px;
    background: var(--light);
    color: var(--gray);
    border: 2px solid var(--gray-light);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);    max-width: 170px;
    justify-content: center;
}

.clear-btn:hover {
    background: var(--gray-light);
    border-color: var(--gray);
    transform: translateY(-2px);
}

/* ============ CATEGORY TABS ============ */
.category-tabs {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 5px;padding-top:20px;
}

.category-tabs::-webkit-scrollbar {
    height: 4px;
}

.category-tabs::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 4px;
}

.category-tabs::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.category-tab {
    padding: 14px 28px;
    border: 2px solid var(--gray-light);
    border-radius: 50px;
    background: var(--white);
    color: var(--gray);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    white-space: nowrap;
}

.category-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(103, 126, 234, 0.2);
}

.category-tab.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(103, 126, 234, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(103, 126, 234, 0.3); }
    70% { box-shadow: 0 4px 30px rgba(103, 126, 234, 0.5); }
    100% { box-shadow: 0 4px 20px rgba(103, 126, 234, 0.3); }
}

/* ============ APPS SECTION ============ */
.apps-section {
    margin-bottom: 100px;
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
}

.apps-count {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(103, 126, 234, 0.2);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    transition: var(--transition);
    width: 100%;
}

.app-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-light);
    opacity: 0;
    transform: translateY(30px);
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.app-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.app-card:hover::before {
    transform: scaleX(1);
}

/* Category-specific colors for card borders */
.app-card[data-category="health"]:hover::before {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.app-card[data-category="education"]:hover::before {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}
.app-card[data-category="finance"]:hover::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.app-card[data-category="culture"]:hover::before {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}
.app-card[data-category="business"]:hover::before {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}
.app-card[data-category="tool"]:hover::before {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.app-card[data-category="game"]:hover::before {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.app-card[data-category="knowledge"]:hover::before {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}
.app-card[data-category="other"]:hover::before {
    background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
}

/* ============ APP STATUS ============ */
.app-status {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    min-width: 90px;
    text-align: center;
}

.app-status.active {
    background: rgba(220, 252, 231, 0.95);
    color: #166534;
    border: 1px solid #10b981;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

.app-status.development {
    background: rgba(243, 232, 255, 0.95);
    color: #6b21a8;
    border: 1px solid #8b5cf6;
}

.app-status.inactive {
    background: rgba(254, 243, 199, 0.95);
    color: #92400e;
    border: 1px solid #f59e0b;
}

@keyframes glow {
    from { box-shadow: 0 0 25px rgba(16, 185, 129, 0.3); }
    to { box-shadow: 0 0 35px rgba(16, 185, 129, 0.6); }
}

.app-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
    margin-top: 40px;
}

.app-image {
    width: 90px;
    height: 90px;
    border-radius: var(--radius);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--white);
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(103, 126, 234, 0.3);
}

.app-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.app-info {
    flex: 1;
}

.app-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.app-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--primary-light);
    box-shadow: 0 2px 8px rgba(103, 126, 234, 0.15);
}

.app-description {
    color: var(--gray);
    line-height: 1.7;
    margin: 24px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1.05rem;
}

.app-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 24px 0;
    font-size: 0.95rem;
    color: var(--gray);
    flex-wrap: wrap;
}

.app-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.app-btn {
    padding: 12px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    justify-content: center;
    flex: 1;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.app-btn.primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow);
}

.app-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.app-btn.secondary {
    background: var(--light);
    color: var(--gray);
    border: 2px solid var(--gray-light);
}

.app-btn.secondary:hover {
    background: var(--gray-light);
    color: var(--dark);
}

.app-btn.warning {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    color: var(--white);
}

.app-btn.info {
    background: linear-gradient(135deg, var(--info) 0%, #0891b2 100%);
    color: var(--white);
}

.app-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============ LOADING & STATES ============ */
.loading {
    text-align: center;
    padding: 100px 20px;
    color: var(--gray);
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 70px;
    height: 70px;
    background: conic-gradient(from 0deg, transparent, var(--primary), transparent);
    border-radius: 50%;
    mask: radial-gradient(circle at center, transparent 60%, black 60%);
    animation: spin 1s linear infinite;
    margin: 0 auto 28px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 100px 20px;
    color: var(--gray);
    grid-column: 1 / -1;
}

.no-results-icon {
    font-size: 4.5rem;
    margin-bottom: 28px;
    opacity: 0.5;
    color: var(--primary);
}

.no-results-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.no-results-text {
    font-size: 1.15rem;
    max-width: 450px;
    margin: 0 auto;
}

.error {
    text-align: center;
    padding: 100px 20px;
    color: var(--danger);
    grid-column: 1 / -1;
    background: #fef2f2;
    border-radius: var(--radius-lg);
    border: 1px solid #fecaca;
}

.error-icon {
    font-size: 3.5rem;
    margin-bottom: 28px;
}

.error-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.error-text {
    font-size: 1.15rem;
    margin-bottom: 28px;
}

.retry-btn {
    background: var(--danger);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.retry-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* ============ FLOATING ACTION BUTTON ============ */
.fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 65px;
    height: 65px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 1000;
    animation: fabPulse 3s ease-in-out infinite;
}

.fab:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

@keyframes fabPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 25px rgba(103, 126, 234, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 30px rgba(103, 126, 234, 0.5);
    }
}

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.25s ease;
}

/* ============ CATEGORY SPECIFIC COLORS ============ */
.app-card[data-category="health"] .app-image,
.app-card[data-category="health"] .app-btn.primary {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.app-card[data-category="health"] .app-category {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.app-card[data-category="education"] .app-image,
.app-card[data-category="education"] .app-btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.app-card[data-category="education"] .app-category {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.app-card[data-category="finance"] .app-image,
.app-card[data-category="finance"] .app-btn.primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.app-card[data-category="finance"] .app-category {
    background: #d1fae5;
    color: #059669;
    border-color: #6ee7b7;
}

.app-card[data-category="culture"] .app-image,
.app-card[data-category="culture"] .app-btn.primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.app-card[data-category="culture"] .app-category {
    background: #f3e8ff;
    color: #7c3aed;
    border-color: #c4b5fd;
}

.app-card[data-category="business"] .app-image,
.app-card[data-category="business"] .app-btn.primary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.app-card[data-category="business"] .app-category {
    background: #f3f4f6;
    color: #4b5563;
    border-color: #d1d5db;
}

.app-card[data-category="tool"] .app-image,
.app-card[data-category="tool"] .app-btn.primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.app-card[data-category="tool"] .app-category {
    background: #fef3c7;
    color: #d97706;
    border-color: #fcd34d;
}

.app-card[data-category="game"] .app-image,
.app-card[data-category="game"] .app-btn.primary {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.app-card[data-category="game"] .app-category {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.app-card[data-category="knowledge"] .app-image,
.app-card[data-category="knowledge"] .app-btn.primary {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.app-card[data-category="knowledge"] .app-category {
    background: #cffafe;
    color: #0891b2;
    border-color: #67e8f9;
}

.app-card[data-category="other"] .app-image,
.app-card[data-category="other"] .app-btn.primary {
    background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
}

.app-card[data-category="other"] .app-category {
    background: #ecfccb;
    color: #65a30d;
    border-color: #bef264;
}

/* Hover effects with category colors */
.app-card[data-category="health"]:hover {
    border-color: #fca5a5;
}
.app-card[data-category="education"]:hover {
    border-color: #93c5fd;
}
.app-card[data-category="finance"]:hover {
    border-color: #6ee7b7;
}
.app-card[data-category="culture"]:hover {
    border-color: #c4b5fd;
}
.app-card[data-category="business"]:hover {
    border-color: #d1d5db;
}
.app-card[data-category="tool"]:hover {
    border-color: #fcd34d;
}
.app-card[data-category="game"]:hover {
    border-color: #fca5a5;
}
.app-card[data-category="knowledge"]:hover {
    border-color: #67e8f9;
}
.app-card[data-category="other"]:hover {
    border-color: #bef264;
}

/* Category tab colors */
.category-tab.active[data-category="health"] {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.category-tab.active[data-category="education"] {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}
.category-tab.active[data-category="finance"] {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.category-tab.active[data-category="culture"] {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}
.category-tab.active[data-category="business"] {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}
.category-tab.active[data-category="tool"] {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.category-tab.active[data-category="game"] {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.category-tab.active[data-category="knowledge"] {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}
.category-tab.active[data-category="other"] {
    background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
}

/* ============ NOTIFICATION ANIMATIONS ============ */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 1200px) {
    .content-container {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .filters-section {
        margin-left: 16px;
        margin-right: 16px;
        padding: 32px 24px;
    }
    
    .apps-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 1024px) {
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .navbar-container {
        padding: 0 16px;
    }
    
    .navbar-logo {
        max-width: 180px;
    }
    
    .navbar-actions {
        gap: 12px;
    }
    
    .navbar-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .hero {
        padding: 80px 0 60px 0;
    }
    
    .category-tabs {
        gap: 12px;
    }
    
    .category-tab {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .content-container {
        padding: 0 12px;
    }
    
    .hero {
        padding: 60px 0 40px 0;
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
                
    .navbar-btn span {
        display: none;
    }
    
    .navbar-btn {
        padding: 10px 14px;
        min-width: auto;
    }
    
    .filters-section {
        padding: 24px 16px;
        margin: 0 12px 40px 12px;
    }
    
    .filters-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        margin: 0 -12px;
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .category-tab {
        flex-shrink: 0;
        min-width: 110px;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .app-card {
        padding: 24px;
    }
    
    .app-actions {
        flex-direction: column;
    }
    
    .app-btn {
        flex: none;
    }
    
    .fab {
        bottom: 24px;
        right: 24px;
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }

    .app-image {
        width: 75px;
        height: 75px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .navbar-container {
        padding: 0 8px;
    }
    
    .navbar-actions {
        gap: 6px;
    }
    
    .app-header {
        flex-direction: column;
        text-align: center;
        margin-top: 50px;
        align-items: center;
    }
    
    .app-image {
        margin: 0 auto;
        width: 70px;
        height: 70px;
    }
    
    .app-info {
        text-align: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .app-meta {
        justify-content: center;
    }
    
    .filters-section {
        padding: 20px 12px;
        margin: 0 8px 30px 8px;
    }
    
    .content-container {
        padding: 0 8px;
    }
    
    .category-tabs {
        margin: 20px -8px;
        padding: 0 8px 10px 8px;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    
    .category-tab {
        min-width: 100px;
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .hero-content {
        padding: 0 12px;
    }
}