:root {
    --bg-dark: #050a14;
    --bg-card: #0f1c2e;
    --primary: #64ffda;
    --secondary: #8892b0;
    --text-main: #e6f1ff;
    --text-muted: #8892b0;
    --error: #ff5f5f;
    --font-stack: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-stack);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(100, 255, 218, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 100;
    background: rgba(15, 28, 46, 0.85);
    /* Slightly more opaque for better contrast */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(100, 255, 218, 0.15);
    /* Tinted border to match logo */
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

header:hover {
    background: rgba(15, 28, 46, 0.95);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(100, 255, 218, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo {
    height: 40px;
    width: auto;
    filter: none;
    /* No more green glow */
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(5deg) scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #fff, #8892b0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.user-status,
.rank-status {
    font-size: 0.85rem;
    color: var(--text-main);
    opacity: 0.8;
    margin-left: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rank-status {
    background: rgba(100, 255, 218, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
}

.rank-status:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.1);
}

.highlight {
    color: var(--primary);
    font-weight: 700;
}

main {
    padding: 2rem 5%;
    position: relative;
    z-index: 5;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 8rem;
    /* Increased for fixed header */
    margin-bottom: 5rem;
}

.drone-status-container {
    display: inline-flex;
    align-items: center;
    background: rgba(100, 255, 218, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--primary);
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, #8892b0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.2s;
}

.hero p {
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.4s;
}


.product-card {
    background: rgba(15, 28, 46, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(136, 146, 176, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.product-details {
    width: 100%;
    text-align: left;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.actions {
    display: flex;
    gap: 1rem;
    position: relative;
    /* Essential for the running button */
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: #4cdbbc;
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--error);
    color: var(--error);
}

/* Modern Bento Grid & Micro-interactions */
.suggestions h3 {
    margin-bottom: 2rem;
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.grid-item {
    background: rgba(15, 28, 46, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.grid-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(100, 255, 218, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(100, 255, 218, 0.1);
}

.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transition: 0.5s;
}

.grid-item:hover::before {
    left: 100%;
}

.grid-item .suggestion-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: transform 0.5s ease;
    filter: grayscale(20%);
}

.grid-item:hover .suggestion-image {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.grid-item p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.grid-item:hover p {
    color: var(--primary);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


footer {
    text-align: center;
    padding: 4rem 1rem;
    color: rgba(136, 146, 176, 0.4);
    font-size: 0.8rem;
}

.small {
    font-size: 0.7rem;
    margin-top: 0.5rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    header {
        width: 95%;
        padding: 0.5rem 1rem;
        top: 10px;
    }

    .logo {
        height: 35px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .user-status {
        display: none;
        /* Hide user status on mobile to save space */
    }

    .rank-status {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .hero {
        margin-top: 7rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .product-card {
        padding: 1.5rem;
    }

    .grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}