:root {
    --bg-color: #0f0f13;
    --text-color: #ffffff;
    --text-secondary: #a0a0b0;
    --primary: #6c5ce7;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Animations */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

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

.globe-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.globe-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.globe-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 40%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

/* Navigation */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(15, 15, 19, 0.7);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.highlight {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-color);
}

.cart-icon {
    position: relative;
    font-size: 1.4rem;
    cursor: pointer;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 1rem;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.gradient-text {
    background: linear-gradient(to right, var(--secondary), var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientText 5s linear infinite;
}

@keyframes gradientText {
    to {
        background-position: 200% center;
    }
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.4);
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 5%;
}

/* Status Panel */
.status-panel h3 {
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.status-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.status-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.status-item:hover {
    border-color: var(--glass-border);
    background: rgba(255, 255, 255, 0.06);
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00b894;
    box-shadow: 0 0 10px #00b894;
}

.indicator.offline {
    background: #d63031;
    box-shadow: 0 0 10px #d63031;
}

/* Products */
.products-section {
    padding: 2rem 5%;
}

.products-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-family: 'Space Grotesk', sans-serif;
}

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

.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

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

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

.product-card:hover::before {
    transform: translateX(100%);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    text-align: center;
    display: block;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.add-btn {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.add-btn:hover {
    background: var(--primary);
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.toast {
    background: rgba(15, 15, 19, 0.9);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .glass-card {
        margin: 1rem 2%;
    }
}

/* View Management */
.view {
    display: block;
    animation: fadeIn 0.5s;
}

.view.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Auth Styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 3rem;
    text-align: center;
}

.auth-card h2 {
    margin-bottom: 2rem;
    font-family: 'Space Grotesk', sans-serif;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.full-width {
    width: 100%;
    margin-top: 1rem;
}

.auth-link {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-link a {
    color: var(--primary);
    text-decoration: none;
}

/* Cart Styles */
.container {
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.cart-content {
    min-height: 200px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-summary {
    margin-top: 2rem;
    text-align: right;
}

.summary-row {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Admin Styles */
.glass-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.glass-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px dotted var(--text-secondary);
}

.admin-form .form-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.admin-form input,
.admin-form select {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 8px;
    flex: 1;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.admin-table th {
    color: var(--primary);
}

@media (max-width: 600px) {
    .admin-form .form-row {
        flex-direction: column;
    }
}

/* Enhanced Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.status-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    transition: transform 0.3s;
}

.status-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
}

.status-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
}

.status-port {
    font-family: monospace;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.status-badge {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: rgba(0, 184, 148, 0.2);
    color: #00b894;
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.status-badge.offline {
    background: rgba(214, 48, 49, 0.2);
    color: #d63031;
    border: 1px solid rgba(214, 48, 49, 0.3);
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(90deg, #ff4757, #ffa502, #ff4757);
    background-size: 200% auto;
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    animation: gradientMove 3s linear infinite, slideDown 0.5s ease-out;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

@keyframes gradientMove {
    to { background-position: 200% center; }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}