:root {
    --bg-dark: #0a0e1a;
    --card-bg: #121826;
    --border-color: #1e2433;
    --accent: #c0c0c0;
    --accent-light: #d4d4d4;
    --accent-dark: #a0a0a0;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --danger: #dc2626;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #0a0e1a;
    color: #e0e0e0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    border-bottom: 1px solid #1e2433;
    padding: 1.2rem 0;
    background-color: #0a0e1a;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-area {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #e0e0e0;
}

.logo-text span {
    color: #c0c0c0;
}

.logo-sub {
    color: #b0b0b0;
    font-size: 0.8rem;
    border-left: 1px solid #1e2433;
    padding-left: 12px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.15s;
}

.nav-links a:hover, 
.nav-links a.active {
    color: #c0c0c0;
}

.cart-icon {
    background: #121826;
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid #1e2433;
    color: #e0e0e0 !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-login, 
.btn-signup, 
.btn-logout {
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
    font-size: 0.9rem;
}

.btn-login {
    color: #c0c0c0 !important;
    border: 1px solid #c0c0c0;
    background: transparent;
}

.btn-login:hover {
    background: #c0c0c0;
    color: #0a0e1a !important;
}

.btn-signup {
    background: #c0c0c0;
    color: #0a0e1a !important;
    border: 1px solid #c0c0c0;
    font-weight: 600;
}

.btn-signup:hover {
    background: #d4d4d4;
}

.btn-logout {
    background: transparent;
    border: 1px solid #dc2626;
    color: #dc2626 !important;
}

.btn-logout:hover {
    background: #dc2626;
    color: #ffffff !important;
}

/* Hero */
.hero {
    padding: 3.5rem 0;
    text-align: center;
    border-bottom: 1px solid #1e2433;
    background-color: #0a0e1a;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    color: #e0e0e0;
}

.hero h1 span {
    color: #c0c0c0;
}

.hero p {
    color: #b0b0b0;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.hero .btn-signup {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Section Titles */
.section-title {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
    font-weight: 600;
    color: #e0e0e0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background: #121826;
    border: 1px solid #1e2433;
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.15s;
    cursor: pointer;
}

.product-card:hover {
    border-color: #c0c0c0;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #c0c0c0;
}

.product-desc {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.2rem;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e0e0e0;
}

.product-price small {
    font-size: 0.8rem;
    color: #808080;
    font-weight: 400;
}

.btn-add-cart {
    background: transparent;
    border: 1px solid #c0c0c0;
    color: #c0c0c0;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-add-cart:hover {
    background: #c0c0c0;
    color: #0a0e1a;
}

/* Forms */
.auth-container {
    max-width: 450px;
    margin: 3rem auto;
    background: #121826;
    border: 1px solid #1e2433;
    border-radius: 16px;
    padding: 2rem;
}

.auth-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #e0e0e0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    background: #0a0e1a;
    border: 1px solid #1e2433;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
}

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

.btn-primary {
    width: 100%;
    padding: 14px;
    background: #c0c0c0;
    color: #0a0e1a;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-primary:hover {
    background: #d4d4d4;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: #b0b0b0;
}

.auth-switch a {
    color: #c0c0c0;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Tables */
.cart-table,
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #121826;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1e2433;
}

.cart-table th,
.admin-table th {
    text-align: right;
    padding: 1rem;
    border-bottom: 1px solid #1e2433;
    color: #b0b0b0;
    font-weight: 500;
    background: #0a0e1a;
}

.cart-table td,
.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid #1e2433;
    color: #e0e0e0;
}

.cart-table tr:last-child td,
.admin-table tr:last-child td {
    border-bottom: none;
}

.btn-remove {
    background: transparent;
    border: 1px solid #dc2626;
    color: #dc2626;
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.15s;
}

.btn-remove:hover {
    background: #dc2626;
    color: #ffffff;
}

.checkout-box {
    background: #121826;
    border: 1px solid #1e2433;
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0;
    padding-top: 1rem;
    border-top: 1px solid #1e2433;
    color: #e0e0e0;
}

.total-row span:last-child {
    color: #c0c0c0;
}

/* Admin Panel */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.stats-box {
    display: flex;
    gap: 2rem;
}

.stat-item {
    color: #b0b0b0;
}

.stat-item strong {
    color: #c0c0c0;
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #f59e0b;
    color: #000;
}

.status-completed {
    background: #10b981;
    color: #000;
}

.status-cancelled {
    background: #dc2626;
    color: #ffffff;
}

/* Product Detail Page */
.product-detail {
    background: #121826;
    border: 1px solid #1e2433;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.product-detail h1 {
    font-size: 2rem;
    color: #c0c0c0;
    margin-bottom: 1rem;
}

.product-detail p {
    color: #b0b0b0;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.product-detail .btn-signup {
    padding: 16px 40px;
    font-size: 1.2rem;
}

/* About Page */
.about-content {
    background: #121826;
    border: 1px solid #1e2433;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.about-content p {
    color: #b0b0b0;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #1e2433;
}

.contact-info h3 {
    color: #c0c0c0;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #808080;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid #1e2433;
    text-align: center;
    color: #808080;
    font-size: 0.9rem;
    background-color: #0a0e1a;
}

/* Links */
a {
    color: #c0c0c0;
    text-decoration: none;
}

a:hover {
    color: #d4d4d4;
    text-decoration: underline;
}

/* Input Number Styling */
input[type="number"] {
    width: 80px;
    padding: 8px;
    background: #0a0e1a;
    border: 1px solid #1e2433;
    color: #e0e0e0;
    border-radius: 6px;
    text-align: center;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #10b981;
    color: #000;
}

.alert-error {
    background: #dc2626;
    color: #ffffff;
}

.alert-info {
    background: #121826;
    border: 1px solid #1e2433;
    color: #e0e0e0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-table thead,
    .admin-table thead {
        display: none;
    }
    
    .cart-table tr,
    .admin-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #1e2433;
        border-radius: 12px;
        padding: 1rem;
        background: #121826;
    }
    
    .cart-table td,
    .admin-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
    }
    
    .cart-table td:before,
    .admin-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #b0b0b0;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-box {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0e1a;
}

::-webkit-scrollbar-thumb {
    background: #1e2433;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #808080;
}

/* Selection */
::selection {
    background: #c0c0c0;
    color: #0a0e1a;
}

::-moz-selection {
    background: #c0c0c0;
    color: #0a0e1a;
}