/* Dark Empires — Site header bar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.header-back {
    font-size: 1.25rem;
    color: var(--text);
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease, transform 0.2s ease;
}
.header-back:hover { color: var(--primary); transform: translateX(-2px); }

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    transition: transform 0.25s ease;
}
.header-brand:hover { transform: scale(1.02); }

.header-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(99,102,241,0.25));
    transition: transform 0.3s ease;
}
.header-brand:hover .header-logo { transform: rotate(-4deg) scale(1.05); }

.header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    transition: transform 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-cart {
    position: relative;
    font-size: 1.25rem;
    color: var(--text);
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.2s ease;
}
.header-cart:hover { background: rgba(0,0,0,0.05); }

/* Wallet pill */
.header-wallet {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(22,163,74,0.12), rgba(34,197,94,0.18));
    border: 1px solid rgba(22,163,74,0.28);
    color: #15803d;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 2px 8px rgba(22,163,74,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}
.header-wallet:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 6px 14px rgba(22,163,74,0.22);
    background: linear-gradient(135deg, rgba(22,163,74,0.18), rgba(34,197,94,0.24));
}
.header-wallet i { font-size: 0.85rem; opacity: 0.85; }
.header-wallet-amount { font-variant-numeric: tabular-nums; }
@media (max-width: 360px) {
    .header-wallet { padding: 0.35rem 0.6rem; font-size: 0.78rem; }
    .header-wallet i { display: none; }
}

.cart-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 0.70rem;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

@media (min-width: 480px) {
    .header-title { font-size: 1.75rem; }
    .header-logo  { height: 40px; }
}
@media (min-width: 768px) {
    .site-header  { padding: 1.25rem 2rem; }
    .header-title { font-size: 2rem; }
    .header-logo  { height: 44px; }
}
@media (max-width: 480px) {
    .header-logo  { height: 30px; }
    .header-brand { gap: 0.45rem; }
}
@media (max-width: 360px) {
    .site-header  { padding: 0.75rem 1rem; }
    .header-title { font-size: 1.1rem; }
    .header-logo  { height: 26px; }
}

/* Auth simple-center topbar (login/register) */
.auth-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 28rem;
    padding: 0 1rem;
    margin-bottom: 1rem;
}
.auth-back    { color: #4b5563; font-size: 1.25rem; }
.auth-spacer  { display: inline-block; width: 1.5rem; }
.auth-title   { font-size: 1.125rem; font-weight: 600; color: #1f2937; }
