* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0f1a;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header .logo h1 {
    font-size: 22px;
    background: linear-gradient(90deg, #e94560, #0f3460);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: 1px;
}

.header .logo span {
    color: #e94560;
    -webkit-text-fill-color: #e94560;
}

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav a {
    color: #ccc;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.nav a:hover {
    background: rgba(233, 69, 96, 0.15);
    color: #e94560;
}

.nav a.btn-primary {
    background: #e94560;
    color: white;
}

.nav a.btn-primary:hover {
    background: #d63851;
    color: white;
}

.nav a.btn-outline {
    border: 1px solid #e94560;
    color: #e94560;
}

.nav a.btn-outline:hover {
    background: #e94560;
    color: white;
}

.user-badge {
    color: #e94560;
    font-size: 13px;
    padding: 4px 12px;
    background: rgba(233, 69, 96, 0.1);
    border-radius: 20px;
    margin-right: 5px;
}

/* Container */
.container {
    width: 92%;
    max-width: 1200px;
    margin: 30px auto;
    flex: 1;
}

/* Cards */
.card {
    background: #1a1a2e;
    padding: 25px;
    margin: 20px 0;
    border-radius: 12px;
    border: 1px solid #2a2a4a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card h2 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 22px;
}

.card h3 {
    color: #e94560;
    margin-bottom: 10px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid #2a2a4a;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(90deg, #e94560, #0f3460);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.hero p {
    color: #aaa;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 20px;
}

.search-box {
    display: flex;
    max-width: 500px;
    margin: 20px auto;
    gap: 0;
}

.search-box input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #2a2a4a;
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: #0f0f1a;
    color: #fff;
    font-size: 15px;
    outline: none;
}

.search-box input:focus {
    border-color: #e94560;
}

.search-box button {
    padding: 14px 25px;
    background: #e94560;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

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

.product-box {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a2a4a;
    transition: all 0.3s;
}

.product-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.15);
    border-color: #e94560;
}

.product-box .img-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #0f0f1a;
}

.product-box .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-box:hover .img-wrap img {
    transform: scale(1.05);
}

.product-box .content {
    padding: 18px 20px 20px;
}

.product-box .category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e94560;
    font-weight: 600;
}

.product-box h3 {
    font-size: 17px;
    margin: 8px 0 10px;
    color: #fff;
    line-height: 1.3;
}

.product-box .desc {
    color: #888;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-box .meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
}

.product-box .meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-box .price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.product-box .price {
    font-size: 22px;
    font-weight: 800;
    color: #00c853;
}

.product-box .old-price {
    font-size: 15px;
    color: #ff5252;
    text-decoration: line-through;
}

.product-box .buy-btn {
    display: block;
    text-align: center;
    padding: 12px;
    background: linear-gradient(90deg, #e94560, #0f3460);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.product-box .buy-btn:hover {
    opacity: 0.9;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2a2a4a;
}

.product-detail .img-wrap {
    width: 100%;
    min-height: 400px;
    background: #0f0f1a;
}

.product-detail .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail .info {
    padding: 30px 30px 30px 0;
}

.product-detail .info h1 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 5px;
}

.product-detail .info .category-tag {
    font-size: 12px;
    color: #e94560;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.product-detail .info .description {
    color: #aaa;
    line-height: 1.7;
    margin: 15px 0;
    font-size: 15px;
}

.product-detail .info .price-block {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin: 20px 0;
}

.product-detail .info .current-price {
    font-size: 32px;
    font-weight: 800;
    color: #00c853;
}

.product-detail .info .original-price {
    font-size: 20px;
    color: #ff5252;
    text-decoration: line-through;
}

.product-detail .info .stats {
    display: flex;
    gap: 25px;
    margin: 15px 0;
    color: #888;
    font-size: 14px;
}

.product-detail .info .stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.buy-btn-large {
    display: inline-block;
    padding: 16px 50px;
    background: linear-gradient(90deg, #e94560, #0f3460);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.buy-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

.buy-btn-large:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Forms */
form {
    max-width: 500px;
    margin: 0 auto;
}

form.wide {
    max-width: 100%;
}

label {
    display: block;
    color: #ccc;
    margin: 15px 0 5px;
    font-size: 14px;
    font-weight: 500;
}

input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    margin: 5px 0 10px;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    background: #0f0f1a;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
    border-color: #e94560;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button, .btn {
    background: linear-gradient(90deg, #e94560, #0f3460);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

button:hover, .btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

button.danger, .btn-danger {
    background: #ff5252;
}

button.success, .btn-success {
    background: #00c853;
}

button.secondary, .btn-secondary {
    background: #2a2a4a;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a2e;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #2a2a4a;
}

th {
    background: #0f3460;
    color: #fff;
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid #2a2a4a;
    color: #ccc;
    font-size: 14px;
}

tr:hover td {
    background: rgba(233, 69, 96, 0.05);
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: #1a1a2e;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #2a2a4a;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 800;
    color: #e94560;
}

.stat-card .stat-label {
    color: #888;
    font-size: 14px;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Alerts */
.alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
}

.alert-success {
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid #00c853;
    color: #00c853;
}

.alert-error {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid #ff5252;
    color: #ff5252;
}

.alert-info {
    background: rgba(233, 69, 96, 0.1);
    border: 1px solid #e94560;
    color: #e94560;
}

/* Reviews */
.review-card {
    background: #0f0f1a;
    padding: 18px;
    border-radius: 10px;
    margin: 12px 0;
    border: 1px solid #2a2a4a;
}

.review-card .reviewer {
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.review-card .stars {
    color: #ffc107;
    margin-bottom: 8px;
}

.review-card .review-text {
    color: #aaa;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: #0a0a15;
    text-align: center;
    padding: 30px;
    margin-top: auto;
    border-top: 1px solid #2a2a4a;
}

.footer p {
    color: #666;
    font-size: 13px;
}

/* Payment Page */
.payment-page {
    text-align: center;
    padding: 60px 20px;
}

.payment-page .icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.payment-page h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 10px;
}

.payment-page p {
    color: #888;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 12px;
        padding: 12px 5%;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 28px;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-detail .info {
        padding: 20px;
    }

    .product-detail .img-wrap {
        min-height: 250px;
    }

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

    .search-box input {
        border-radius: 8px;
        border-right: 1px solid #2a2a4a;
    }

    .search-box button {
        border-radius: 8px;
        margin-top: 5px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
