* {
    box-sizing: border-box;
}

:root {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #ecfbff;
    background: #020a11;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 0%, rgba(0, 190, 255, .16), transparent 34%),
        radial-gradient(circle at 90% 30%, rgba(0, 255, 145, .10), transparent 30%),
        linear-gradient(135deg, #01070c, #031925 55%, #01070c);
}

.page {
    width: min(980px, 100%);
    margin: auto;
    padding: 16px 16px 50px;
}

.topbar {
    height: 78px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #00bde9;
    border-radius: 32px;
    background: rgba(4, 28, 42, .68);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(0, 190, 255, .12);
}

.brand {
    font-size: clamp(28px, 6vw, 52px);
    font-weight: 900;
    letter-spacing: 5px;
    background: linear-gradient(90deg, #00baff, #00ffd0, #00ff8c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.close-btn {
    position: absolute;
    right: 12px;
    top: 11px;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 2px solid #00dfff;
    border-radius: 17px;
    color: white;
    text-decoration: none;
    font-size: 40px;
    line-height: 1;
    box-shadow: 0 0 20px rgba(0, 220, 255, .3);
    background: rgba(0, 20, 30, .35);
}

.hero {
    padding: 28px 22px 16px;
}

.eyebrow {
    color: #00ceff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 6px;
}

.hero h1 {
    margin: 5px 0;
    font-size: clamp(40px, 8vw, 64px);
    line-height: 1;
}

.hero p {
    margin: 8px 0;
    color: #91c7dc;
    font-size: 19px;
}

.glass {
    background: rgba(5, 30, 45, .62);
    border: 1px solid rgba(0, 190, 255, .55);
    backdrop-filter: blur(18px);
    box-shadow:
        0 0 28px rgba(0, 160, 220, .08),
        inset 0 1px rgba(255,255,255,.03);
    border-radius: 28px;
}

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

.stat-card {
    padding: 21px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    font-size: 35px;
    color: #00d8ff;
}

.stat-icon.green {
    color: #00ff9a;
}

.stat-card small {
    display: block;
    color: #74c5df;
}

.stat-card strong {
    display: block;
    font-size: 42px;
}

.form-card,
.list-card {
    margin-top: 18px;
    padding: 26px;
}

.section-title {
    display: flex;
    gap: 17px;
    align-items: center;
    margin-bottom: 18px;
}

.plus {
    width: 60px;
    height: 60px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 2px solid #00d5ff;
    border-radius: 50%;
    color: #00d5ff;
    font-size: 40px;
}

h2 {
    margin: 0;
    font-size: 27px;
}

.section-title p,
.list-head p {
    margin: 4px 0;
    color: #8fbfd3;
}

form {
    display: grid;
    gap: 10px;
}

label {
    color: #a6d9e9;
    font-weight: 700;
}

input {
    display: block;
    width: 100%;
    height: 60px;
    margin-top: 6px;
    padding: 0 17px;
    border: 1px solid #008fc5;
    border-radius: 17px;
    outline: none;
    background: rgba(0, 13, 22, .58);
    color: white;
    font-size: 17px;
}

input:focus {
    border-color: #00e3ff;
    box-shadow: 0 0 15px rgba(0, 220, 255, .17);
}

.primary {
    height: 62px;
    margin-top: 8px;
    border: 0;
    border-radius: 19px;
    background: linear-gradient(90deg, #00cfff, #00f39a);
    color: #00151c;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
}

.message {
    min-height: 24px;
    margin-top: 10px;
}

.message.ok {
    color: #00ff97;
}

.message.error,
.error {
    color: #ff718b;
}

.list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.refresh {
    height: 48px;
    padding: 0 17px;
    border: 1px solid #00cfff;
    border-radius: 15px;
    background: rgba(0, 30, 45, .55);
    color: #c9f6ff;
    font-size: 15px;
}

#sellerList {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.seller {
    padding: 20px;
}

.seller-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
}

.avatar {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid #008fd0;
    border-radius: 50%;
    background: rgba(0, 170, 255, .12);
    font-size: 27px;
}

.seller-info h3 {
    margin: 0 0 5px;
    font-size: 24px;
}

.seller-info p {
    margin: 3px 0;
    color: #91bdd0;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    padding: 4px 10px;
    border: 1px solid #00ed8b;
    border-radius: 20px;
    color: #00ff96;
    font-size: 12px;
    font-weight: 800;
}

.status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff96;
    box-shadow: 0 0 8px #00ff96;
}

.status.off {
    border-color: #ff6b86;
    color: #ff6b86;
}

.status.off i {
    background: #ff6b86;
    box-shadow: none;
}

.credits {
    text-align: right;
}

.credits small {
    display: block;
    color: #75c8dd;
}

.credits strong {
    font-size: 38px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 17px;
}

.actions button {
    flex: 1;
    min-width: 145px;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #00cfff;
    border-radius: 14px;
    background: rgba(0, 30, 45, .55);
    color: #c7f5ff;
    font-weight: 800;
}

.actions .credit-btn {
    border-color: #00ff96;
    color: #00ff96;
}

.actions .danger {
    border-color: #ff607c;
    color: #ff9aad;
}

.loading,
.empty {
    padding: 25px;
    text-align: center;
    color: #8fbfd3;
}

dialog {
    border: 0;
    padding: 0;
    background: transparent;
}

dialog::backdrop {
    background: rgba(0,0,0,.74);
    backdrop-filter: blur(5px);
}

.dialog-box {
    position: relative;
    width: min(470px, 92vw);
    padding: 27px;
    border: 1px solid #00cfff;
    border-radius: 25px;
    background: #061b28;
    color: white;
    box-shadow: 0 0 35px rgba(0,200,255,.2);
}

.dialog-box h3 {
    margin: 0 0 18px;
    font-size: 26px;
}

.dialog-x {
    position: absolute;
    top: 7px;
    right: 12px;
    border: 0;
    background: transparent;
    color: white;
    font-size: 31px;
}

.view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.view-grid div {
    padding: 13px;
    border: 1px solid #075f80;
    border-radius: 13px;
    background: rgba(0,30,45,.55);
}

.view-grid small,
.view-grid b {
    display: block;
}

.view-grid small {
    color: #67bad4;
    margin-bottom: 5px;
}

@media (max-width: 650px) {

    .page {
        padding: 10px 12px 35px;
    }

    .topbar {
        height: 66px;
    }

    .brand {
        font-size: 28px;
        letter-spacing: 3px;
    }

    .close-btn {
        width: 46px;
        height: 46px;
        font-size: 34px;
    }

    .hero {
        padding: 24px 10px 14px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .stats {
        gap: 9px;
    }

    .stat-card {
        padding: 15px 12px;
        gap: 10px;
    }

    .stat-card strong {
        font-size: 32px;
    }

    .form-card,
    .list-card {
        padding: 18px;
        border-radius: 22px;
    }

    .section-title {
        align-items: flex-start;
    }

    .section-title h2,
    .list-head h2 {
        font-size: 22px;
    }

    .list-head {
        align-items: flex-start;
    }

    .seller-main {
        grid-template-columns: auto 1fr;
    }

    .credits {
        grid-column: 2;
        text-align: left;
    }

    .actions button {
        min-width: 100%;
    }

    .view-grid {
        grid-template-columns: 1fr;
    }
}
