/* WeChat hub — vendor console (premium) */
:root {
    --ink: #141229;
    --ink-soft: #4a4766;
    --muted: #8a88a3;
    --bg: #f5f4fb;
    --surface: #ffffff;
    --line: #e9e7f5;
    --primary: #5b3df5;
    --primary-700: #3e23c7;
    --mint: #10b6a0;
    --gold: #f5a623;
    --red: #e5484d;
    --grad: linear-gradient(135deg, #6a4bff 0%, #8b5cf6 52%, #4f2be0 100%);
    --shadow-sm: 0 1px 2px rgba(20,18,41,.06), 0 2px 8px rgba(20,18,41,.05);
    --shadow-md: 0 10px 30px rgba(63,35,199,.12);
    --shadow-lg: 0 24px 60px rgba(63,35,199,.22);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-700); }
h1, h2 { letter-spacing: -0.02em; margin: 0; }

/* Topbar */
.topbar {
    background: var(--grad);
    color: #fff;
    padding: 18px 28px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: var(--shadow-md);
}
.topbar__brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; }
.topbar__logo { font-size: 22px; }
.topbar__right { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.topbar a { color: #fff; text-decoration: none; opacity: .9; font-weight: 600; }
.topbar a:hover { opacity: 1; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 26px 28px 60px; }

/* Stat tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 22px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.tile__value { font-size: 28px; font-weight: 800; line-height: 1; }
.tile__label { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 6px; }
.tile--pending { border-left: 3px solid var(--gold); }
.tile--active { border-left: 3px solid var(--mint); }
.tile--suspended { border-left: 3px solid var(--red); }

/* Toolbar */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input[type=search], .toolbar select, .inp {
    font: inherit; font-size: 14px; padding: 9px 12px; border: 1.5px solid var(--line);
    border-radius: 10px; background: #fff; color: var(--ink);
}
.toolbar input[type=search] { min-width: 240px; }
.inp:focus, .toolbar input:focus, .toolbar select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,61,245,.12); }

/* Account cards */
.accounts { display: flex; flex-direction: column; gap: 12px; }
.acct {
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    padding: 18px 20px; box-shadow: var(--shadow-sm);
    display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 16px; align-items: center;
}
.acct--pending { border-left: 4px solid var(--gold); }
.acct__domain { font-weight: 800; font-size: 15px; }
.acct__meta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.acct__tier { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.acct__req { font-size: 12.5px; color: var(--muted); }
.acct__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge--pending { background: #fdf3d6; color: #8a6a0a; }
.badge--active { background: #d9f6f0; color: #0a6a5c; }
.badge--suspended { background: #fde4e4; color: #a42020; }
.badge--rejected { background: #eceaf4; color: #6b6a82; }

/* Buttons */
.btn { font: inherit; font-size: 13.5px; font-weight: 700; border: 0; border-radius: 10px; padding: 9px 15px; cursor: pointer; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 18px rgba(91,61,245,.3); }
.btn--primary:hover { filter: saturate(1.08); transform: translateY(-1px); }
.btn--ghost { background: #efeafe; color: var(--primary-700); }
.btn--ghost:hover { background: #e4ddfd; }
.btn--danger { background: #fde4e4; color: #a42020; }
.btn--sm { padding: 7px 11px; font-size: 12.5px; }
select.inp--sm { padding: 7px 10px; font-size: 12.5px; border-radius: 9px; }

form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }

.empty { text-align: center; color: var(--muted); padding: 40px; background: var(--surface); border: 1px dashed var(--line); border-radius: 16px; }

/* Login */
.login-page { min-height: 100vh; display: grid; place-items: center; background: var(--grad); padding: 20px; }
.login-card { width: 100%; max-width: 380px; background: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow-lg); }
.login-card h1 { font-size: 22px; margin-bottom: 4px; }
.login-card p { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }
.login-card label { display: block; font-size: 13px; font-weight: 700; margin: 0 0 6px; }
.login-card .inp { width: 100%; margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; }
.login-card .btn--primary { width: 100%; padding: 13px; font-size: 15px; }
.login-err { background: #fde4e4; color: #a42020; padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }

@media (max-width: 760px) {
    .acct { grid-template-columns: 1fr; }
    .acct__actions { justify-content: flex-start; }
}
