:root {
    --bg-color: #07090e;
    --card-bg: rgba(19, 27, 46, 0.75);
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --accent-hover: #4f46e5;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    background-image: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%), radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 40%);
    min-height: 100vh;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

header h1 {
    font-size: 28px;
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-glow);
}

.cart-badge {
    background: var(--accent);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    box-shadow: 0 0 10px var(--accent);
}

.hero-text {
    text-align: center;
    margin-bottom: 50px;
}

.hero-text h2 {
    font-size: 42px;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.card h3 {
    margin-bottom: 15px;
    color: #818cf8;
    font-size: 20px;
}

.price {
    font-size: 28px;
    font-weight: 800;
    color: var(--success);
    margin: 20px 0;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

button, .btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--accent-glow);
    width: 100%;
}

button:hover, .btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.6);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

form input, form textarea, form select {
    width: 100%;
    padding: 14px;
    margin: 10px 0 20px 0;
    background: rgba(7, 9, 14, 0.8);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: white;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

form input:focus, form textarea:focus, form select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

th, td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: rgba(30, 41, 59, 0.6);
    color: #cbd5e1;
    font-weight: 600;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-working { background: rgba(59, 130, 246, 0.2); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.4); }

.panel-box {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.progress-container {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
    height: 12px;
    width: 100%;
    margin: 15px 0;
    border: 1px solid var(--border);
}

.progress-bar {
    background: linear-gradient(90deg, var(--accent), var(--success));
    height: 100%;
    transition: width 0.5s ease;
}

.chat-box {
    max-height: 450px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(7, 9, 14, 0.6);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-msg {
    background: rgba(30, 41, 59, 0.7);
    padding: 14px 18px;
    border-radius: 12px;
    max-width: 80%;
    border: 1px solid var(--border);
}

.chat-msg.self {
    background: rgba(99, 102, 241, 0.2);
    align-self: flex-end;
    border-color: rgba(99, 102, 241, 0.4);
}

.attachment-preview {
    margin-top: 10px;
    max-width: 250px;
    border-radius: 8px;
    border: 1px solid var(--border);
}