* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-right .balance {
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.header-right a {
    color: white;
    text-decoration: none;
    position: relative;
}

.header-right .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
}

.btn-login, .btn-signup {
    padding: 5px 15px;
    border-radius: 5px;
    background: rgba(255,255,255,0.2);
    margin-left: 10px;
}

main {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Mobile footer */
.mobile-footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: white;
    border-top: 1px solid #ddd;
    padding: 8px 0;
    position: sticky;
    bottom: 0;
    width: 100%;
    z-index: 100;
}

.mobile-footer a {
    text-decoration: none;
    color: #777;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.mobile-footer a i {
    font-size: 1.3rem;
    margin-bottom: 3px;
}

.mobile-footer a.active,
.mobile-footer a:hover {
    color: #667eea;
}

/* Cards for stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

/* Order form */
.order-form {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group select,
.form-group input[type="text"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group select:focus,
.form-group input:focus {
    border-color: #667eea;
    outline: none;
}

.price-display {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* Responsive */
@media (min-width: 768px) {
    .mobile-footer a span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header {
        flex-wrap: wrap;
    }
    .header-right .balance {
        font-size: 0.8rem;
    }
}