:root {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Animations */
.background-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-blue);
    top: -50px;
    left: -50px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-green);
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(40px, 40px) scale(1.05); }
}

/* Layout */
.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.app-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease backwards;
}

.app-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Categories */
.category-section {
    margin-bottom: 36px;
    animation: fadeInUp 0.8s ease backwards;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
}

.category-icon {
    font-size: 18px;
}

.safe-icon { color: #34d399; }
.speed-icon { color: #60a5fa; }
.net-icon { color: #a78bfa; }

.plugins-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Plugin Card (Glassmorphism) */
.plugin-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.plugin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.08), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.plugin-card:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.08);
}

.plugin-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.plugin-card:hover::before {
    left: 150%;
}

.plugin-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.plugin-card:hover .plugin-icon-wrapper {
    transform: scale(1.05);
}

/* Specific Plugin Colors */
.plugin-card[data-id="smart-safe"] .plugin-icon-wrapper { color: #34d399; background: rgba(52, 211, 153, 0.15); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.3); }
.plugin-card[data-id="behavior"] .plugin-icon-wrapper { color: #60a5fa; background: rgba(96, 165, 250, 0.15); box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.3); }
.plugin-card[data-id="acceleration"] .plugin-icon-wrapper { color: #f472b6; background: rgba(244, 114, 182, 0.15); box-shadow: inset 0 0 0 1px rgba(244, 114, 182, 0.3); }
.plugin-card[data-id="uplink"] .plugin-icon-wrapper { color: #fbbf24; background: rgba(251, 191, 36, 0.15); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.3); }
.plugin-card[data-id="wifi-opt"] .plugin-icon-wrapper { color: #a78bfa; background: rgba(167, 139, 250, 0.15); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.3); }

.plugin-name {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.play-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.plugin-card:hover .play-badge, 
.plugin-card:active .play-badge {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Staggered delays for categories */
.category-section:nth-child(1) { animation-delay: 0.1s; }
.category-section:nth-child(2) { animation-delay: 0.2s; }
.category-section:nth-child(3) { animation-delay: 0.3s; }
