* { box-sizing: border-box; }
body {
    margin: 0;
    background: #fff;
    color: #0f172a;
    font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.page { min-height: 100vh; padding: 40px 24px; }
.container { width: 100%; max-width: 1152px; margin: 0 auto; }
.narrow { width: 100%; max-width: 576px; margin: 0 auto; }
.hero, .panel, .table { border: 1px solid #e2e8f0; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.hero { display: flex; justify-content: space-between; gap: 24px; align-items: center; border-radius: 24px; padding: 32px; margin-bottom: 40px; }
.panel { border-radius: 24px; padding: 32px; }
.soft { background: #f8fafc; }
.center { text-align: center; }
.brand { display: flex; align-items: center; gap: 20px; }
.brand img { height: 80px; width: auto; object-fit: contain; }
.eyebrow { margin: 0 0 8px; color: #64748b; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 38px; line-height: 1.1; margin-bottom: 0; }
h2 { font-size: 26px; margin-bottom: 4px; }
h3 { font-size: 20px; margin-bottom: 8px; }
.muted { color: #64748b; }
.actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 16px;
    padding: 10px 18px;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
}
.button.primary { background: #0f172a; border-color: #0f172a; color: #fff; }
.button.black { background: #000; border-color: #000; color: #fff; }
.button.danger { background: #991b1b; border-color: #991b1b; color: #fff; }
.button.block { display: flex; width: 100%; justify-content: flex-start; padding: 16px 20px; }
.toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 24px; }
.count { border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 16px; padding: 9px 16px; color: #475569; font-size: 14px; }
.grid { display: grid; gap: 20px; }
.cards-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { border: 1px solid #e2e8f0; border-radius: 24px; padding: 24px; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.status { border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; }
.status.active { background: #ecfdf5; color: #047857; }
.status.inactive { background: #f1f5f9; color: #475569; }
.between { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.slug { color: #94a3b8; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; }
.table { overflow: hidden; border-radius: 24px; }
.table-row { display: grid; grid-template-columns: 72px 1.2fr 1.1fr 1.1fr 1.1fr 90px 240px; gap: 16px; align-items: center; padding: 18px 24px; border-bottom: 1px solid #f1f5f9; }
.table-row.header { background: #f8fafc; color: #64748b; font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.table-row:last-child { border-bottom: 0; }
.logo-small { height: 48px; width: auto; object-fit: contain; }
.avatar { width: 128px; height: 128px; border-radius: 999px; object-fit: cover; }
.logo-large { height: 96px; width: auto; object-fit: contain; }
.links { display: grid; gap: 12px; margin-top: 28px; text-align: left; }
.qr-box { margin-top: 32px; border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 24px; padding: 24px; }
.qr { width: 224px; height: 224px; background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 1px 2px rgba(15,23,42,.08); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 8px; color: #334155; font-size: 14px; font-weight: 600; }
input[type="text"], input[type="email"], input[type="file"], input[type="color"] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
}
input[type="color"] { height: 46px; padding: 6px; }
input[aria-invalid="true"] { border-color: #dc2626; background: #fef2f2; }
.colour-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(180px, .8fr); gap: 12px; align-items: stretch; }
.wallet-colour-preview {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 74px;
    border-radius: 16px;
    padding: 12px 16px;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.wallet-colour-preview span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .72; }
.wallet-colour-preview strong { margin-top: 4px; font-size: 16px; }
.check { display: flex; gap: 12px; align-items: center; border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 16px; padding: 12px 16px; }
.logo-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.logo-option { cursor: pointer; border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px; }
.logo-option.selected { border-color: #0f172a; background: #f8fafc; }
.logo-option input { position: absolute; opacity: 0; pointer-events: none; }
.logo-option-preview { height: 96px; display: flex; align-items: center; justify-content: center; }
.logo-option-preview img { max-height: 80px; width: auto; object-fit: contain; }
.break { word-break: break-all; }
.error { border: 1px solid #fecaca; background: #fef2f2; color: #991b1b; border-radius: 16px; padding: 14px 16px; margin-bottom: 20px; }
.success { border: 1px solid #bbf7d0; background: #f0fdf4; color: #166534; border-radius: 16px; padding: 14px 16px; margin-bottom: 20px; }
@media (max-width: 800px) {
    .page { padding: 32px 20px; }
    .hero, .toolbar { align-items: flex-start; flex-direction: column; }
    .form-grid { grid-template-columns: 1fr; }
    .colour-row { grid-template-columns: 1fr; }
    .table-row { grid-template-columns: 1fr; }
    .table-row.header { display: none; }
}
