:root {
    --bg: #060a12;
    --bg-elevated: #0d1420;
    --card: #111a29;
    --border: #1e2c40;
    --text: #eaf4ff;
    --text-muted: #8fa3bd;
    --accent: #29c1ff;
    --accent-2: #5ef4ff;
    --accent-strong: #0b6fd6;
    --success: #21d07a;
    --danger: #ff5470;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

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

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

/* Header */
.site-header {
    background: rgba(6, 10, 18, 0.95);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(6px);
}

.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    gap: 20px;
}

.logo img { height: 40px; display: block; }

.main-nav {
    display: flex;
    gap: 6px;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav a {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    border: 1px solid transparent;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent-2);
    border-color: var(--border);
    background: var(--bg-elevated);
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 600;
    white-space: nowrap;
}

.cart-badge {
    background: var(--accent);
    color: #04121f;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    padding: 1px 7px;
}

/* Banner */
.hero-banner { display: block; width: 100%; }
.hero-banner img { width: 100%; display: block; }

/* Trust strip */
.trust-strip {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.trust-strip .container {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 13px;
    color: var(--text-muted);
}
.trust-strip span { display: flex; align-items: center; gap: 8px; }
.trust-strip strong { color: var(--text); }

/* Sections */
.section { padding: 46px 0; }
.section-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-title img { height: 30px; }

/* Game category grid on homepage */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}
.game-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    height: 180px;
    display: flex;
    align-items: flex-end;
    background: var(--card);
}
.game-card img.bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: transform .3s ease, opacity .3s ease;
}
.game-card:hover img.bg { transform: scale(1.06); opacity: 0.75; }
.game-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,10,18,0.95), rgba(6,10,18,0.15));
}
.game-card .label {
    position: relative;
    z-index: 2;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.game-card .label img { height: 28px; }
.game-card .label span { font-size: 19px; font-weight: 800; }

/* Product grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}
.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}
.product-card .icon-amount {
    display: flex;
    align-items: center;
    gap: 10px;
}
.product-card .icon-amount img { width: 34px; height: 34px; object-fit: contain; }
.product-card .amount { font-size: 19px; font-weight: 800; }
.product-card .bonus { font-size: 12px; color: var(--success); font-weight: 700; }
.product-card .price-row { margin-top: auto; }
.product-card .price-old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 13px;
    display: block;
}
.product-card .price-now { font-size: 22px; font-weight: 800; color: var(--accent-2); }
.product-card .badge-sold {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 999px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 9px;
    padding: 11px 18px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent-2), var(--accent-strong));
    color: #04121f;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.btn.btn-block { width: 100%; }

/* Category tabs */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}
.category-tabs a {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
}
.category-tabs a.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #04121f;
}

/* Cart & checkout */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.cart-table th, .cart-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 14px;
}
.cart-table th { color: var(--text-muted); font-size: 12px; text-transform: uppercase; }
.qty-input {
    width: 60px;
    padding: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 6px;
}
.cart-summary {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    max-width: 340px;
    margin-left: auto;
}
.cart-summary .total-row {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 800;
    margin: 14px 0 18px;
}
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

form .field { margin-bottom: 16px; }
form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--text-muted); }
form input, form select, form textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    font-size: 14px;
}
form input:focus, form select:focus, form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.checkout-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 26px;
    align-items: flex-start;
}
@media (max-width: 800px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .cart-summary { max-width: none; margin-left: 0; }
}

.order-item-row {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}
.order-item-row .game-account {
    margin-top: 8px;
}

/* Confirmation */
.confirm-box {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 46px 34px;
}
.confirm-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(33, 208, 122, 0.14);
    color: var(--success);
    display: flex; align-items: center; justify-content: center;
    font-size: 34px;
    margin: 0 auto 20px;
}
.pix-box {
    background: var(--bg-elevated);
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 20px;
    margin: 22px 0;
}
.pix-box img { max-width: 220px; margin: 0 auto 14px; display: block; }
.copy-paste {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.copy-paste input {
    flex: 1;
    font-size: 12px;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
    padding: 36px 0 26px;
    margin-top: 60px;
    color: var(--text-muted);
    font-size: 13px;
}
.site-footer .foot-grid {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.site-footer h4 {
    color: var(--text);
    font-size: 14px;
    margin: 0 0 10px;
}
.site-footer .legal {
    border-top: 1px solid var(--border);
    padding-top: 18px;
    font-size: 12px;
}

.alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
}
.alert-error { background: rgba(255, 84, 112, 0.12); border: 1px solid var(--danger); color: #ffc2cd; }
.alert-info { background: rgba(41, 193, 255, 0.1); border: 1px solid var(--accent); color: var(--accent-2); }

.status-pill {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.status-pending { background: rgba(255,193,7,0.15); color: #ffc107; }
.status-paid { background: rgba(33,208,122,0.15); color: var(--success); }
.status-delivered { background: rgba(41,193,255,0.15); color: var(--accent-2); }
.status-cancelled { background: rgba(255,84,112,0.15); color: var(--danger); }
