/* SteamVault — Dizayn Sistemi
   Palette: #0B0E14 (bg), #131826 (panel), #1C2333 (card), #4FE6C0 (accent-mint),
            #7A8AFF (accent-violet), #E7ECF5 (text), #8A93A6 (muted)
   Type: 'Space Grotesk' (display/UI), 'Inter' (body), 'JetBrains Mono' (data/price/login)
   Signature: hər hesab "lokker kartı" kimi göstərilir — perforasiyalı kənar,
   mono-şrift seriya nömrəsi (ACC-0001), barkod-tərzi qiymət bloku.
*/

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

:root {
    --bg: #0B0E14;
    --panel: #131826;
    --card: #1C2333;
    --card-hover: #222B40;
    --border: #2A3349;
    --mint: #4FE6C0;
    --violet: #7A8AFF;
    --text: #E7ECF5;
    --muted: #8A93A6;
    --danger: #FF6B6B;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, .display {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.mono {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

/* === Layout === */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Header === */
header.site-header {
    background: rgba(11,14,20,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    max-width: 1180px;
    margin: 0 auto;
}

.logo {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo .dot { color: var(--mint); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14.5px;
    font-weight: 500;
}

.balance-pill {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 999px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 14px;
    color: var(--mint);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .15s ease;
}
.btn-primary { background: var(--mint); color: #06231C; }
.btn-primary:hover { background: #6CF0D2; transform: translateY(-1px); }
.btn-outline { border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--mint); color: var(--mint); }
.btn-block { width: 100%; text-align: center; }
.btn-danger { background: var(--danger); color: #2A0707; }

/* === Hero === */
.hero {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -120px; right: -120px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(79,230,192,0.18), transparent 70%);
    pointer-events: none;
}
.eyebrow {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    color: var(--mint);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.hero h1 {
    font-size: 42px;
    max-width: 640px;
    margin-bottom: 16px;
}
.hero p {
    color: var(--muted);
    max-width: 520px;
    font-size: 16px;
}
.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 32px;
}
.hero-stats div span {
    display: block;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 24px;
    color: var(--mint);
    font-weight: 700;
}
.hero-stats div small {
    color: var(--muted);
    font-size: 12.5px;
}

/* === Filters === */
.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 36px 0 24px;
}
.filters input, .filters select {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
}
.filters input { flex: 1; min-width: 200px; }

/* === Account Grid (locker cards) === */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.locker-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all .18s ease;
    position: relative;
}
.locker-card:hover {
    border-color: var(--mint);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.locker-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0E1320;
}
.locker-thumb img { width: 100%; height: 100%; object-fit: cover; }

.serial-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(11,14,20,0.85);
    border: 1px solid var(--border);
    padding: 3px 9px;
    border-radius: 6px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 11px;
    color: var(--muted);
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--mint);
    color: #06231C;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-weight: 700;
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 6px;
}

.sold-badge {
    position: absolute;
    inset: 0;
    background: rgba(11,14,20,0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    color: var(--danger);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.locker-body { padding: 16px; }
.locker-game {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.locker-title {
    font-size: 16.5px;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.price-block {
    display: flex;
    align-items: baseline;
    gap: 8px;
    border-top: 1px dashed var(--border);
    padding-top: 12px;
}
.price-now {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 19px;
    font-weight: 700;
    color: var(--mint);
}
.price-old {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 13px;
    color: var(--muted);
    text-decoration: line-through;
}

/* === Detail Page === */
.detail-wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    padding: 40px 0 70px;
}
.detail-img {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.detail-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px;
    height: fit-content;
}
.detail-panel h1 { font-size: 24px; margin-bottom: 6px; }
.detail-meta { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.desc-box {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 22px;
    font-size: 14.5px;
    color: #C7CEDC;
    white-space: pre-line;
}
.price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.price-row .price-now { font-size: 30px; }

/* === Auth Forms === */
.auth-wrap {
    max-width: 400px;
    margin: 70px auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px;
}
.auth-wrap h1 { font-size: 22px; margin-bottom: 6px; }
.auth-wrap p.sub { color: var(--muted); font-size: 13.5px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px;
}
.field input, .field textarea, .field select {
    width: 100%;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 11px 13px;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14.5px;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--mint);
}
.alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    margin-bottom: 18px;
}
.alert-error { background: rgba(255,107,107,0.12); border: 1px solid rgba(255,107,107,0.4); color: #FF9B9B; }
.alert-success { background: rgba(79,230,192,0.12); border: 1px solid rgba(79,230,192,0.4); color: var(--mint); }

/* === Success / Receipt Page === */
.receipt-wrap {
    max-width: 480px;
    margin: 70px auto;
    text-align: center;
}
.receipt-check {
    width: 64px; height: 64px;
    background: var(--mint);
    color: #06231C;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    font-weight: 700;
}
.receipt-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px;
    margin-top: 26px;
    text-align: left;
}
.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14.5px;
}
.receipt-row:last-child { border-bottom: none; }
.receipt-row .label { color: var(--muted); }
.receipt-row .value { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; color: var(--mint); }
.credentials-box {
    background: var(--panel);
    border: 1px solid var(--mint);
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 14px;
}
.credentials-box div { margin-bottom: 6px; }
.credentials-box .k { color: var(--muted); }

/* === Footer === */
footer {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

/* === Admin === */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 220px;
    background: var(--panel);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    flex-shrink: 0;
}
.admin-sidebar .logo { padding: 0 20px 24px; }
.admin-sidebar a {
    display: block;
    padding: 11px 20px;
    color: var(--muted);
    font-size: 14.5px;
    font-weight: 500;
    border-left: 3px solid transparent;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    color: var(--text);
    background: var(--card);
    border-left-color: var(--mint);
}
.admin-main { flex: 1; padding: 32px 36px; }
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
table.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    font-size: 14px;
}
table.admin-table th, table.admin-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
table.admin-table th {
    background: var(--panel);
    color: var(--muted);
    font-weight: 600;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
table.admin-table tr:last-child td { border-bottom: none; }
.status-tag {
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 12px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.status-available { background: rgba(79,230,192,0.15); color: var(--mint); }
.status-sold { background: rgba(255,107,107,0.15); color: var(--danger); }

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
}
.stat-card .num {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    font-size: 26px;
    font-weight: 700;
    color: var(--mint);
}
.stat-card .lbl { color: var(--muted); font-size: 13px; margin-top: 4px; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

@media (max-width: 860px) {
    .detail-wrap { grid-template-columns: 1fr; gap: 24px; padding: 24px 0 50px; }
    .nav-links { gap: 14px; font-size: 13px; }
    .admin-shell { flex-direction: column; }
    .admin-sidebar { width: 100%; padding: 10px 0; }
    .admin-sidebar .logo { padding: 0 16px 10px; }
    .admin-main { padding: 20px 16px; }
}

/* === Mobil telefonlar (iPhone daxil) === */
@media (max-width: 600px) {
    .container { padding: 0 16px; }

    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px 16px;
    }
    .logo { font-size: 19px; }
    .nav-links {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px 16px;
        font-size: 13.5px;
    }
    .balance-pill { font-size: 12.5px; padding: 6px 10px; }
    .btn { padding: 9px 16px; font-size: 13.5px; }

    .hero { padding: 36px 0 32px; }
    .hero h1 { font-size: 28px; max-width: 100%; }
    .hero p { font-size: 14.5px; max-width: 100%; }
    .hero-stats { gap: 22px; flex-wrap: wrap; margin-top: 24px; }
    .hero-stats div span { font-size: 20px; }

    .filters { flex-direction: column; }
    .filters input, .filters select { width: 100%; }

    .grid { grid-template-columns: 1fr; gap: 16px; }

    .detail-panel { padding: 20px; }
    .detail-panel h1 { font-size: 20px; }
    .price-row .price-now { font-size: 24px; }

    .auth-wrap { margin: 36px auto; padding: 24px; max-width: 100%; }
    .receipt-wrap { margin: 40px auto; }
    .receipt-card { padding: 20px; }

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

    table.admin-table { display: block; overflow-x: auto; white-space: nowrap; }
    .admin-topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
}

