:root {
    --bg-main: #050507;
    --primary: #7c3aed; /* Deep Purple */
    --primary-glow: rgba(124, 58, 237, 0.5);
    --secondary: #00f0ff; /* Cyber Cyan */
    --surface: rgba(15, 15, 20, 0.6);
    --surface-border: rgba(124, 58, 237, 0.2);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    --success: #10b981;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Vazir', system-ui, sans-serif; }

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    direction: rtl;
    overflow-x: hidden;
}

/* Cyber Grid Background */
.cyber-grid-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(124, 58, 237, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism & GPU Acceleration */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transform: translateZ(0); /* Hardware Acceleration */
}

/* Typography */
.glitch-text {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px var(--primary-glow);
    letter-spacing: 2px;
}

/* Hero Section */
.hero-header {
    text-align: center;
    padding: 4rem 1rem;
    margin-bottom: 4rem;
    border-bottom: 2px solid var(--primary);
    border-radius: 0 0 30px 30px;
}
.subtitle { color: var(--text-muted); margin-top: 1rem; font-size: 1.2rem; }

/* Bento Grid Structure */
.container { max-width: 1300px; margin: 0 auto; padding: 0 2rem; }
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.bento-card {
    padding: 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.bento-card:hover {
    transform: translateY(-10px) translateZ(0);
    border-color: var(--primary);
    box-shadow: 0 15px 40px var(--primary-glow);
}

/* Card Elements */
.datacenter-badge {
    position: absolute; top: -15px; right: 20px;
    background: var(--bg-main); border: 1px solid var(--primary);
    color: var(--secondary); padding: 5px 15px; border-radius: 20px;
    font-size: 0.85rem; box-shadow: 0 0 10px rgba(0,240,255,0.2);
}
.server-title { font-size: 1.6rem; margin-bottom: 1.5rem; color: #fff; }
.specs-list { list-style: none; margin-bottom: 2rem; }
.specs-list li {
    padding: 0.8rem 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    color: var(--text-muted);
}
.specs-list strong { color: #fff; float: left; }
.price-box { text-align: center; margin-bottom: 1.5rem; }
.price-box .amount { font-size: 2.2rem; font-weight: bold; color: var(--primary); text-shadow: 0 0 15px var(--primary-glow); }
.price-box .currency { color: var(--text-muted); font-size: 0.9rem; }

/* Buttons */
.btn {
    display: inline-block; padding: 1rem 2rem; border: none; border-radius: 8px;
    font-weight: bold; cursor: pointer; transition: 0.3s; text-align: center; text-decoration: none;
}
.btn-primary { background: linear-gradient(45deg, var(--primary), #5b21b6); color: white; border: 1px solid rgba(255,255,255,0.1); }
.btn-primary:hover { box-shadow: 0 0 20px var(--primary-glow); }
.btn-danger { background: rgba(239, 68, 68, 0.2); color: var(--danger); border: 1px solid var(--danger); }
.btn-block { width: 100%; display: block; }
.cyber-btn { width: 100%; text-transform: uppercase; letter-spacing: 1px; }

/* Modal Forms */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); }
.modal-content { margin: 10% auto; padding: 2rem; width: 90%; max-width: 450px; position: relative; border-top: 3px solid var(--primary); }
.close-btn { color: var(--text-muted); float: left; font-size: 28px; font-weight: bold; cursor: pointer; }
.modal-heading { color: var(--primary); margin-bottom: 1.5rem; }

/* Form Inputs */
.cyber-form input {
    width: 100%; padding: 1rem; margin-bottom: 1rem;
    background: rgba(0,0,0,0.4); border: 1px solid var(--surface-border);
    color: white; border-radius: 8px; outline: none; transition: 0.3s;
}
.cyber-form input:focus { border-color: var(--secondary); box-shadow: 0 0 10px rgba(0,240,255,0.2); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.cyber-form label { color: var(--text-muted); font-size: 0.9rem; margin-bottom: -0.5rem; }

/* Admin Layout */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar { width: 260px; padding: 2rem; border-right: 1px solid var(--surface-border); border-radius: 0; }
.sidebar-title { color: var(--secondary); margin-bottom: 2rem; font-size: 1.2rem; text-align: center; letter-spacing: 2px; }
.sidebar nav a { display: block; padding: 1rem; color: var(--text-muted); text-decoration: none; border-radius: 8px; margin-bottom: 0.5rem; transition: 0.3s; }
.sidebar nav a:hover, .sidebar nav a.active { background: rgba(124,58,237,0.1); color: #fff; border-right: 3px solid var(--primary); }
.admin-content { flex: 1; padding: 2rem; }
.login-box { width: 100%; max-width: 400px; padding: 3rem; margin: 10vh auto; }

/* Tables */
.cyber-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.cyber-table th, .cyber-table td { padding: 1rem; text-align: right; border-bottom: 1px solid rgba(255,255,255,0.05); }
.cyber-table th { color: var(--text-muted); font-weight: normal; }
.status-badge { padding: 0.3rem 0.8rem; border-radius: 50px; font-size: 0.8rem; }
.status-badge.active { background: rgba(16,185,129,0.1); color: var(--success); border: 1px solid var(--success); }
.status-badge.pending { background: rgba(245,158,11,0.1); color: #f59e0b; border: 1px solid #f59e0b; }
.mt-3 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

@media (max-width: 768px) {
    .admin-layout { flex-direction: column; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--surface-border); }
    .grid-2 { grid-template-columns: 1fr; }
}