* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: 'Segoe UI', Tahoma, system-ui, sans-serif;
    direction: rtl;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
    color: #f1f5f9;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 48px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
h1 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff, #c084fc);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.user-section, .user-info {
    background: rgba(0,0,0,0.6);
    border-radius: 60px;
    padding: 15px 25px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}
.user-section input, .user-info input {
    background: rgba(255,255,255,0.15);
    border: none;
    padding: 12px 20px;
    border-radius: 40px;
    color: white;
    flex: 2;
    font-size: 1rem;
}
.user-section input::placeholder { color: rgba(255,255,255,0.7); }
button {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
button:hover { transform: translateY(-2px); filter: brightness(1.05); }
button.danger { background: linear-gradient(135deg, #ef4444, #dc2626); }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.product-card {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.15);
    transition: 0.3s;
}
.product-card:hover {
    transform: translateY(-6px);
    background: rgba(0,0,0,0.8);
    border-color: #a855f7;
}
.product-img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    border-radius: 20px;
    margin-bottom: 10px;
}
.product-card h3 { color: #facc15; font-size: 1.5rem; margin: 10px 0; }
.product-card p { color: #e2e8f0; margin: 5px 0; }
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #1e293b;
    border-radius: 32px;
    padding: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 85%;
    overflow-y: auto;
    border: 1px solid #6366f1;
    box-shadow: 0 25px 40px rgba(0,0,0,0.5);
    color: #f1f5f9;
}
.modal-content h3, .modal-content h4 { color: #facc15; margin-bottom: 15px; }
.close {
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #94a3b8;
}
.close:hover { color: #ef4444; }
input, select, textarea {
    background: #334155;
    border: 1px solid #475569;
    padding: 10px 15px;
    border-radius: 28px;
    color: #f1f5f9;
    width: 100%;
    margin-bottom: 15px;
}
input:focus, select:focus, textarea:focus {
    border-color: #a855f7;
    outline: none;
    background: #3b4252;
}
label { display: block; margin-bottom: 6px; font-weight: 600; color: #cbd5e1; }
.ticket-item {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: 0.2s;
}
.ticket-item:hover { background: #1e293b; transform: translateX(5px); border-color: #a855f7; }
.ticket-item strong { color: #facc15; }
.reward-badge {
    background: #facc15;
    color: #0f172a;
    padding: 4px 12px;
    border-radius: 40px;
    font-weight: bold;
    display: inline-block;
}
@media (max-width: 768px) {
    .container { padding: 20px; }
    h1 { font-size: 1.8rem; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
    .user-section, .user-info { flex-direction: column; align-items: stretch; }
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f172a; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #6366f1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #a855f7; }