.community-setup-shell {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top,
            rgba(0, 150, 255, 0.08),
            transparent 32%
        ),
        var(--dashboard-background, #0b0c0f);

    color: var(--text-main, #f5f7fb);
}

.community-setup-topbar {
    width: 100%;
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 34px;

    border-bottom: 1px solid
        rgba(255, 255, 255, 0.06);

    background:
        rgba(11, 12, 15, 0.82);

    backdrop-filter: blur(16px);
}

.community-back-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: rgba(255, 255, 255, 0.68);

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition: color 0.2s ease;
}

.community-back-button:hover {
    color: #fff;
}

.community-back-button svg {
    width: 18px;
    height: 18px;
}

.community-setup-logo {
    width: 105px;
    height: auto;
}

.community-setup-main {
    width: min(820px, calc(100% - 36px));

    margin: 0 auto;

    padding:
        60px 0
        90px;
}


/* Progress */

.setup-progress {
    display: flex;
    align-items: center;

    margin-bottom: 34px;
}

.setup-progress-step {
    display: flex;
    align-items: center;

    gap: 11px;

    opacity: 0.38;
}

.setup-progress-step.active {
    opacity: 1;
}

.setup-progress-step > span {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border: 1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.04);

    font-size: 12px;
    font-weight: 800;
}

.setup-progress-step.active > span {
    background: #0096ff;
    border-color: #0096ff;

    color: #fff;

    box-shadow:
        0 0 20px
        rgba(0, 150, 255, 0.25);
}

.setup-progress-step div {
    display: flex;
    flex-direction: column;
}

.setup-progress-step strong {
    font-size: 12px;
}

.setup-progress-step small {
    margin-top: 2px;

    color:
        rgba(255, 255, 255, 0.48);

    font-size: 10px;
}

.setup-progress-line {
    height: 1px;

    flex: 1;

    margin: 0 18px;

    background:
        rgba(255, 255, 255, 0.09);
}


/* Card */

.community-setup-card {
    padding: 42px;

    border: 1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 22px;

    background:
        rgba(18, 20, 25, 0.9);

    box-shadow:
        0 24px 60px
        rgba(0, 0, 0, 0.24);
}

.community-setup-heading {
    margin-bottom: 36px;
}

.setup-eyebrow {
    margin: 0 0 9px;

    color: #0096ff;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.community-setup-heading h1 {
    margin: 0;

    font-size:
        clamp(29px, 5vw, 40px);

    line-height: 1.08;

    letter-spacing: -0.045em;
}

.community-setup-heading > p:last-child {
    max-width: 610px;

    margin: 13px 0 0;

    color:
        rgba(255, 255, 255, 0.52);

    font-size: 13px;
    line-height: 1.7;
}


/* Fields */

.setup-field {
    margin-bottom: 32px;
}

.setup-field > label {
    display: block;

    margin-bottom: 9px;

    font-size: 12px;
    font-weight: 700;
}

.setup-field input[type="text"] {
    width: 100%;
    min-height: 50px;

    padding: 0 15px;

    border: 1px solid
        rgba(255, 255, 255, 0.09);

    border-radius: 10px;

    outline: none;

    background:
        rgba(255, 255, 255, 0.035);

    color: #fff;

    font-family: inherit;
    font-size: 13px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.setup-field input[type="text"]:focus {
    border-color:
        rgba(0, 150, 255, 0.75);

    background:
        rgba(0, 150, 255, 0.035);

    box-shadow:
        0 0 0 3px
        rgba(0, 150, 255, 0.08);
}

.field-meta {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    margin-top: 8px;
}

.field-meta small {
    color:
        rgba(255, 255, 255, 0.36);

    font-size: 10px;
}


/* Logo uploader */

.community-logo-uploader {
    display: flex;
    align-items: center;

    gap: 22px;

    padding: 22px;

    border: 1px dashed
        rgba(255, 255, 255, 0.11);

    border-radius: 15px;

    background:
        rgba(255, 255, 255, 0.018);
}

.community-logo-preview {
    width: 94px;
    height: 94px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    overflow: hidden;

    border: 1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #087ed4,
            #0096ff
        );

    color: #fff;

    font-size: 25px;
    font-weight: 800;
}

.community-logo-preview img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.community-logo-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
}

.community-logo-controls strong {
    font-size: 13px;
}

.community-logo-controls p {
    margin: 6px 0 14px;

    color:
        rgba(255, 255, 255, 0.42);

    font-size: 11px;
}

.upload-button {
    cursor: pointer;
}

.text-action {
    margin-top: 11px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #ff6262;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}


/* Error */

.setup-error {
    min-height: 18px;

    margin-bottom: 8px;

    color: #ff6262;

    font-size: 12px;
}


/* Footer */

.community-setup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding-top: 24px;

    border-top: 1px solid
        rgba(255, 255, 255, 0.06);
}

.community-setup-footer .primary-button {
    min-width: 140px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;
}

.community-setup-footer .primary-button svg {
    width: 17px;
    height: 17px;
}

.community-setup-footer a {
    text-decoration: none;
}

.community-setup-note {
    margin: 18px 0 0;

    text-align: center;

    color:
        rgba(255, 255, 255, 0.3);

    font-size: 10px;
}


/* Responsive */

@media (max-width: 680px) {

    .community-setup-topbar {
        padding: 0 20px;
    }

    .setup-progress-step div {
        display: none;
    }

    .setup-progress-line {
        margin: 0 10px;
    }

    .community-setup-card {
        padding: 28px 22px;
    }

    .community-logo-uploader {
        align-items: flex-start;
    }

    .community-logo-preview {
        width: 76px;
        height: 76px;
    }
}

@media (max-width: 480px) {

    .community-logo-uploader {
        flex-direction: column;
    }

    .community-setup-footer {
        display: grid;

        grid-template-columns: 1fr;
    }

    .community-setup-footer > * {
        width: 100%;
    }
}