* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: #0a0a0a;
    background-image: url('../img/background.jpg');
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #e0e0e0;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }

/* Header */
.header { background: #000; box-shadow: 0 2px 8px rgba(0,0,0,.3); padding: 0 20px; position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-size: 22px; font-weight: 900; color: #e3000f; letter-spacing: 2px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 16px; }
.nav a, .nav button { padding: 8px 16px; font-size: 14px; cursor: pointer; border: none; background: none; color: #ccc; transition: .2s; }
.nav a:hover, .nav button:hover { color: #e3000f; }
.nav .btn-primary { background: #e3000f; color: #fff; }
.nav .btn-primary:hover { background: #c2000d; }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a { padding: 4px 10px; font-size: 13px; font-weight: 600; }
.lang-switch a.active { background: #e3000f; color: #fff; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }
.container > h1 { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.9); margin-bottom: 24px; }

/* Auth page */
.auth-box { max-width: 400px; margin: 60px auto; background: #1a1a1a; padding: 40px; box-shadow: 0 4px 24px rgba(0,0,0,.15); border-top: 4px solid #e3000f; border-radius: 12px; }
.auth-box h2 { text-align: center; margin-bottom: 8px; font-size: 24px; text-transform: uppercase; letter-spacing: 1px; color: #fff; }
.auth-box .subtitle { text-align: center; color: #888; font-size: 14px; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #aaa; margin-bottom: 6px; text-transform: uppercase; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 14px; border: 2px solid #333; background: #2a2a2a; color: #fff; font-size: 15px; transition: .2s; border-radius: 8px; }
.form-group input:focus, .form-group textarea:focus { border-color: #e3000f; outline: none; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { width: 100%; padding: 12px 14px; border: 2px solid #333; background: #2a2a2a; color: #fff; font-size: 15px; transition: .2s; border-radius: 8px; }
.form-group select:focus { border-color: #e3000f; outline: none; }
.btn { display: inline-block; padding: 12px 24px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: .2s; text-align: center; text-transform: uppercase; letter-spacing: 1px; border-radius: 8px; }
.btn-primary { background: #e3000f; color: #fff; width: 100%; }
.btn-primary:hover { background: #c2000d; }
.btn-secondary { background: #333; color: #fff; border: 1px solid #444; }
.btn-secondary:hover { background: #444; }
.btn-danger { background: #ef233c; color: #fff; }
.btn-danger:hover { background: #d00000; }
.btn-success { background: #2d6a4f; color: #fff; }
.btn-success:hover { background: #40916c; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 6px; }
.auth-link { text-align: center; margin-top: 16px; font-size: 14px; color: #888; }
.auth-link a { color: #e3000f; font-weight: 600; }
.alert { padding: 12px 16px; font-size: 14px; margin-bottom: 16px; border-radius: 8px; }
.alert-error { background: #ef233c20; color: #ef233c; border: 1px solid #ef233c40; }
.alert-success { background: #2d6a4f30; color: #4ade80; border: 1px solid #2d6a4f60; }

/* Products grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card { background: #1a1a1a; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.3); transition: .3s; border: 1px solid #2a2a2a; border-radius: 12px; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.5); border-color: #e3000f; }
.product-card .img-wrap { height: 220px; background: #2a2a2a; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card .img-wrap img { max-width: 100%; max-height: 100%; object-fit: cover; }
.product-card .img-wrap .no-img { color: #555; font-size: 48px; }
.product-card .card-body { padding: 20px; }
.product-card .card-body h3 { font-size: 18px; margin-bottom: 8px; text-transform: uppercase; color: #fff; }
.product-card .card-body .desc { font-size: 13px; color: #888; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .card-body .price { font-size: 22px; font-weight: 700; color: #e3000f; margin-bottom: 12px; }
.product-card .card-body .btn { width: 100%; }

/* Product detail */
.product-detail { background: #1a1a1a; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.3); display: flex; flex-wrap: wrap; border-radius: 12px; }
.product-detail .detail-img { flex: 1 1 400px; min-height: 400px; background: #2a2a2a; display: flex; align-items: center; justify-content: center; }
.product-detail .detail-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-detail .detail-img .no-img { font-size: 80px; color: #555; }
.product-detail .detail-info { flex: 1 1 350px; padding: 40px; }
.product-detail .detail-info h1 { font-size: 28px; margin-bottom: 16px; text-transform: uppercase; color: #fff; }
.product-detail .detail-info .desc { font-size: 15px; color: #aaa; line-height: 1.6; margin-bottom: 24px; }
.product-detail .detail-info .price { font-size: 32px; font-weight: 700; color: #e3000f; margin-bottom: 24px; }

/* Payment page */
.payment-box { max-width: 600px; margin: 40px auto; background: #1a1a1a; padding: 40px; box-shadow: 0 4px 24px rgba(0,0,0,.3); border-top: 4px solid #e3000f; border-radius: 12px; }
.payment-box h2 { text-align: center; margin-bottom: 8px; text-transform: uppercase; color: #fff; }
.payment-amount { text-align: center; font-size: 36px; font-weight: 700; color: #e3000f; margin: 20px 0; }
.payment-details-list { list-style: none; margin: 20px 0; }
.payment-details-list li { padding: 14px 16px; background: #2a2a2a; margin-bottom: 10px; border-left: 4px solid #e3000f; border-radius: 0 8px 8px 0; }
.payment-details-list li .label { font-size: 12px; color: #888; text-transform: uppercase; font-weight: 600; }
.payment-details-list li .value { font-size: 16px; font-weight: 600; word-break: break-all; color: #fff; }
.payment-instruction { background: #2a2a2a; border-left: 4px solid #fbbf24; padding: 16px; font-size: 14px; margin-bottom: 24px; color: #ccc; border-radius: 0 8px 8px 0; }
.payment-order { text-align: center; color: #888; font-size: 14px; margin-bottom: 20px; }

/* Admin */
.admin-layout { display: flex; min-height: calc(100vh - 60px); }
.admin-sidebar { width: 250px; background: #000; box-shadow: 2px 0 8px rgba(0,0,0,.3); padding: 20px 0; flex-shrink: 0; }
.admin-sidebar a, .admin-sidebar button { display: block; width: 100%; padding: 12px 24px; text-align: left; font-size: 15px; border: none; background: none; cursor: pointer; color: #ccc; transition: .2s; border-radius: 0; }
.admin-sidebar a:hover, .admin-sidebar button:hover { background: #1a1a1a; color: #e3000f; }
.admin-sidebar .active { background: #1a1a1a; color: #e3000f; font-weight: 600; }
.admin-sidebar .admin-info { padding: 16px 24px; font-size: 13px; color: #666; border-bottom: 1px solid #333; margin-bottom: 8px; }
.admin-content { flex: 1; padding: 30px; background: #0f0f0f; }
.admin-card { background: #1a1a1a; padding: 30px; box-shadow: 0 2px 12px rgba(0,0,0,.3); margin-bottom: 24px; border-top: 3px solid #e3000f; border-radius: 12px; }
.admin-card h2 { font-size: 22px; margin-bottom: 20px; text-transform: uppercase; color: #fff; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #2a2a2a; font-size: 14px; color: #ccc; }
.admin-table th { font-weight: 600; color: #888; font-size: 12px; text-transform: uppercase; }
.admin-table .thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; }
.admin-table .actions { display: flex; gap: 8px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.admin-stat { background: #1a1a1a; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.2); border-top: 3px solid #e3000f; border-radius: 12px; }
.admin-stat .stat-value { font-size: 32px; font-weight: 700; color: #e3000f; }
.admin-stat .stat-label { font-size: 13px; color: #888; margin-top: 4px; }

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 999;
    align-items: center;
    justify-content: center;
}
.modal {
    background: #1a1a1a;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    border-radius: 16px;
    border: 1px solid #333;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-header h2 { font-size: 20px; text-transform: uppercase; color: #fff; }
.modal-close {
    font-size: 28px;
    cursor: pointer;
    border: none;
    background: none;
    color: #888;
    line-height: 1;
}
.modal-close:hover { color: #e3000f; }
.modal-tabs { display: flex; gap: 4px; margin-bottom: 20px; }
.tab-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid #333;
    background: #2a2a2a;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: .2s;
    border-radius: 8px;
}
.tab-btn.active {
    border-color: #e3000f;
    background: #e3000f;
    color: #fff;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar { display: none; }
    .product-detail { flex-direction: column; }
    .product-detail .detail-img { min-height: 250px; }
    .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 8px; }
    .modal { padding: 20px; }
    .admin-card { padding: 20px; }
}

/* Cities & Districts pages */
.cities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 20px; }
.city-card { background: #1a1a1a; border: 1px solid #333; border-radius: 12px; padding: 20px; text-align: center; cursor: pointer; transition: all .2s; }
.city-card:hover { border-color: #e63946; transform: translateY(-2px); }
.city-card.selected { border-color: #4ade80; background: #1a2e1a; }
.districts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 16px; }
.district-card { background: #1a1a1a; border: 1px solid #333; border-radius: 10px; padding: 16px; text-align: center; cursor: pointer; transition: all .2s; }
.district-card:hover { border-color: #e63946; }
.district-card.selected { border-color: #4ade80; background: #1a2e1a; }
.step-indicator { display: flex; gap: 12px; margin-bottom: 24px; align-items: center; }
.step { padding: 8px 16px; border-radius: 20px; background: #2a2a2a; font-size: 14px; color: #888; }
.step.active { background: #e63946; color: #fff; }
.step.done { background: #4ade80; color: #000; }
.step-arrow { color: #555; }

/* Contact Widget */
.contact-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Segoe UI', Roboto, sans-serif;
}
.contact-toggle {
    background: #e3000f;
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(227,0,15,0.4);
    transition: all .2s;
    user-select: none;
    text-align: center;
}
.contact-toggle:hover { background: #c2000d; transform: translateY(-2px); }
.contact-content {
    display: none;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 20px;
    margin-top: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    min-width: 220px;
}
.contact-widget.open .contact-content { display: block; }
.contact-link {
    display: block;
    padding: 10px 0;
    color: #ccc;
    font-size: 14px;
    border-bottom: 1px solid #2a2a2a;
    transition: color .2s;
}
.contact-link:last-child { border-bottom: none; }
.contact-link:hover { color: #e3000f; }
