* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 40px 15px;
    background: #f5f6f8;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, .08);
}

h1 {
    margin: 0 0 10px 0;
}

.description {
    margin: 0 0 25px 0;
    color: #555;
}

.field {
    margin-bottom: 22px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-size: 15px;
    outline: none;
    font-family: Arial, Helvetica, sans-serif;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #2563eb;
}

textarea {
    height: 220px;
    resize: vertical;
    line-height: 1.7;
}

.help {
    margin-top: 7px;
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

.security {
    margin-top: 7px;
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}


/*
|--------------------------------------------------------------------------
| Notices
|--------------------------------------------------------------------------
*/

.info-notice {
    margin-top: 15px;
    padding: 13px 15px;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    border-radius: 7px;
    line-height: 1.5;
    font-size: 14px;
}

.space-notice {
    margin-top: 15px;
    padding: 13px 15px;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 7px;
    line-height: 1.5;
    font-size: 14px;
}


/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/

.buttons {
    display: flex;
    gap: 10px;
}

button {
    padding: 12px 20px;
    border: 0;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.check {
    background: #2563eb;
    color: #fff;
}

.check:hover {
    background: #1d4ed8;
}

.clear {
    background: #ddd;
    color: #222;
}


/*
|--------------------------------------------------------------------------
| Errors
|--------------------------------------------------------------------------
*/

.error,
.limit-error {
    margin-top: 20px;
    padding: 15px;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 7px;
    line-height: 1.5;
}

.limit-error {
    font-weight: 600;
}


/*
|--------------------------------------------------------------------------
| Results
|--------------------------------------------------------------------------
*/

.results {
    margin-top: 30px;
}

.checked {
    margin-bottom: 15px;
    color: #555;
    font-size: 14px;
}


/*
|--------------------------------------------------------------------------
| Available header
|--------------------------------------------------------------------------
*/

.available-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.available-heading {
    margin: 0;
    color: #166534;
    font-weight: 600;
    font-size: 16px;
}

.available-description {
    margin: 0 0 14px 0;
    color: #166534;
    font-size: 14px;
    line-height: 1.5;
}


/*
|--------------------------------------------------------------------------
| Results actions
|--------------------------------------------------------------------------
*/

.results-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-button,
.clear-all-button {
    padding: 7px 12px;
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.copy-button:hover,
.clear-all-button:hover {
    background: #f5f5f5;
}

.copy-button.copied {
    background: #f5f5f5;
    color: #333;
}


/*
|--------------------------------------------------------------------------
| Available domains
|--------------------------------------------------------------------------
*/

.available {
    padding: 8px 16px;
    background: #ecfdf5;
    color: #166534;
    border-radius: 8px;
}

.available-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.available-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    line-height: 1.5;
    border-bottom: 1px solid rgba(22, 101, 52, 0.18);
}

.available-item:last-child {
    border-bottom: none;
}

.domain-checkbox {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    accent-color: #166534;
}

.domain-name {
    flex: 1;
    color: #166534;
    font-size: 15px;
    line-height: 1.5;
    user-select: text;
    -webkit-user-select: text;
    cursor: text;
    overflow-wrap: anywhere;
}

.register-link {
    flex: 0 0 auto;
    padding: 5px 10px;
    background: #fff;
    color: #166534;
    border: 1px solid #86efac;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    user-select: none;
    -webkit-user-select: none;
}

.register-link:hover {
    background: #f0fdf4;
}


/*
|--------------------------------------------------------------------------
| No available domains
|--------------------------------------------------------------------------
*/

.no-available {
    padding: 16px;
    background: #fff1f2;
    color: #9f1239;
    border-radius: 8px;
}

.no-available-title {
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 16px;
}


/*
|--------------------------------------------------------------------------
| Registered domains
|--------------------------------------------------------------------------
*/

.registered-section {
    margin-top: 24px;
}

.registered-heading {
    margin: 0 0 7px 0;
    color: #991b1b;
    font-weight: 600;
    font-size: 16px;
}

.registered-description {
    margin: 0 0 14px 0;
    color: #991b1b;
    font-size: 14px;
    line-height: 1.5;
}

.registered {
    padding: 8px 16px;
    background: #fef2f2;
    color: #991b1b;
    border-radius: 8px;
}

.registered-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.registered-item {
    padding: 11px 0;
    border-bottom: 1px solid rgba(153, 27, 27, 0.18);
    line-height: 1.5;
}

.registered-item:last-child {
    border-bottom: none;
}

.registered-domain {
    color: #991b1b;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}


/*
|--------------------------------------------------------------------------
| Invalid domains section
|--------------------------------------------------------------------------
*/

.invalid-section {
    margin-top: 24px;
}


/*
|--------------------------------------------------------------------------
| Invalid header
|--------------------------------------------------------------------------
*/

.invalid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 7px 0;
}

.invalid-heading {
    margin: 0;
    color: #b45309;
    font-weight: 600;
    font-size: 16px;
}


/*
|--------------------------------------------------------------------------
| Invalid description
|--------------------------------------------------------------------------
*/

.invalid-description {
    margin: 0 0 14px 0;
    color: #b45309;
    font-size: 14px;
    line-height: 1.5;
}


/*
|--------------------------------------------------------------------------
| Invalid domains yellow-orange area
|--------------------------------------------------------------------------
*/

.invalid {
    padding: 8px 16px;
    background: #fffbeb;
    color: #b45309;
    border-radius: 8px;
}

.invalid-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.invalid-item {
    padding: 11px 0;
    border-bottom: 1px solid rgba(180, 83, 9, 0.18);
    line-height: 1.5;
}

.invalid-item:last-child {
    border-bottom: none;
}

.invalid-domain {
    color: #b45309;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.invalid-reason {
    margin-top: 3px;
    color: #92400e;
    font-size: 13px;
    line-height: 1.5;
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {
    body {
        padding: 15px 10px;
    }

    .box {
        padding: 20px;
    }

    .buttons {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .available-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .results-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .copy-button,
    .clear-all-button {
        width: auto;
    }

    .available-item {
        align-items: center;
        flex-wrap: wrap;
    }

    .domain-name {
        min-width: 0;
    }

    .register-link {
        margin-left: auto;
    }

    .registered-section {
        margin-top: 22px;
    }

    .registered-description {
        margin-bottom: 14px;
    }

    .registered {
        padding: 8px 14px;
    }

    .registered-item {
        padding: 10px 0;
    }

    .invalid-section {
        margin-top: 22px;
    }

    .invalid-description {
        margin-bottom: 14px;
    }

    .invalid {
        padding: 8px 14px;
    }

    .invalid-item {
        padding: 10px 0;
    }
}