body{
    margin:0;
    padding:0;
    background:#f4f5f8;
    font-family:Tahoma,sans-serif;
}

.header{
    background:#1f2437;
    color:#fff;
    text-align:center;
    padding:40px 20px;
}

.header h1{
    margin:0;
    font-size:42px;
}

.header p{
    opacity:.8;
    margin-top:10px;
}

.products{
    max-width:1400px;
    margin:auto;
    padding:40px 20px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:25px;
}

.card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    transition:.3s;
    display:flex;
    flex-direction:column;
}

.card:hover{
    transform:translateY(-6px);
}

.product-img{
    width:100%;
    height:190px;
    object-fit:cover;
}

.card h2{
    margin:18px 15px 10px;
    font-size:24px;
    color:#222;
}

.card p{
    margin:0 15px 15px;
    color:#666;
    line-height:1.7;
    flex:1;
}

.price{
    margin:0 15px 15px;
    color:#111;
    font-size:22px;
    font-weight:bold;
}

.card button{
    width:calc(100% - 30px);
    margin:0 15px 20px;
    border:none;
    background:#1f2437;
    color:#fff;
    padding:14px;
    border-radius:12px;
    font-size:17px;
    cursor:pointer;
    transition:.3s;
}

.card button:hover{
    background:#2d3550;
}

a{
    text-decoration:none;
}

/* زر التليجرام */
.telegram-btn{
    display:inline-block;
    background:#229ED9;
    color:#fff;
    padding:14px 24px;
    border-radius:12px;
    text-decoration:none;
    font-size:16px;
    margin-top:20px;
    transition:.3s;
}

.telegram-btn:hover{
    background:#1788be;
}

.telegram-note{
    margin-top:25px;
    margin-bottom:18px;
    color:#333;
    font-size:22px;
    font-weight:bold;
    text-align:center;
}

/* البحث */
.search-box{
    display:flex;
    gap:10px;
    margin-bottom:20px;
}

.search-box input{
    flex:1;
    padding:14px;
    border:1px solid #ddd;
    border-radius:12px;
    font-size:15px;
}

.search-box button{
    padding:14px 24px;
    border:0;
    background:#1f2437;
    color:#fff;
    border-radius:12px;
    cursor:pointer;
}

/* جدول الطلبات */
.table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.table th{
    background:#1f2437;
    color:#fff;
    padding:15px;
    font-size:15px;
}

.table td{
    padding:14px;
    border-bottom:1px solid #eee;
    text-align:center;
    font-size:14px;
}

.paid{
    color:green;
    font-weight:bold;
}

@media(max-width:768px){
    .header h1{
        font-size:30px;
    }

    .products{
        grid-template-columns:1fr;
    }

    .search-box{
        flex-direction:column;
    }

   .table{
    width:100%;
    min-width:1100px;
    table-layout:auto;
    border-collapse:collapse;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}
}
.table-wrap{
    max-width:1200px;
    margin:25px auto;
    overflow-x:auto;
}

.title,
.search-box{
    max-width:1200px;
    margin-left:auto;
    margin-right:auto;
}
.stats{
    max-width:1200px;
    margin:20px auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.stat-box{
    background:#fff;
    border-radius:18px;
    padding:25px;
    text-align:center;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.stat-number{
    font-size:34px;
    font-weight:bold;
    color:#1f2437;
    margin-bottom:10px;
}

.stat-label{
    color:#666;
    font-size:16px;
}