﻿header {
    background: #1a1a2e;
    border-bottom: 1px solid #3a3a5e;
    padding: 12px 24px;
    text-align: center;
}

header a {
    font-family: 'Nova Flat', cursive;
    font-size: 22px;
    color: #ffd700;
    text-decoration: none;
}

header a:hover {
    text-decoration: none;
}

main {
    flex: 1;
    max-width: 480px;
    margin: 2rem auto 20rem;
    padding: 30px 15px 20px;
    background: #394555;
    color: #fff;
    border-radius: 16px;
    border: 1px solid #3a3a5e;
    box-shadow: 0 8px 24px rgb(0 71 171 / .15);
}

h1 {
    margin: 40px auto 30px;
    font-weight: 700;
    font-size: 22px;
    color: #fff;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 10px 0 15px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    color: #4ade80;
    letter-spacing: 0.08em;
}

.badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
}

label {
    display: block;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

input[type='text'] {
    width: 100%;
    padding: 10px 14px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: border-color .3s ease;
}

input[type='text']:focus {
    outline: none;
    border-color: #ffd700;
}

.check-btn {
    width: 100%;
    padding: 11px 14px;
    font-size: 16px;
    font-weight: 700;
    background: #ffd700;
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background .2s ease, transform .15s ease;
    margin-top: 15px;
}

.check-btn:hover:not(:disabled) {
    background: #4ade80;
    transform: translateY(-1px);
}

.check-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.result {
    background: #eaf3ff;
    margin: 20px 0 4px;
    padding: 12px 16px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 16px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .25s ease, transform .25s ease;
}

.result.visible {
    opacity: 1;
    transform: translateY(0);
}

.result:last-of-type {
    transition-delay: 0.07s;
}

.result .domain-label {
    font-weight: 700;
}

.result .status {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.status.available { background: #d1fae5; color: #065f46; }
.status.taken     { background: #fee2e2; color: #991b1b; }
.status.checking  { background: #fef9c3; color: #713f12; }
.status.error     { background: #f1f5f9; color: #475569; }

.result .expiry {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}

.result-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.error-msg {
    font-size: 13px;
    color: #fca5a5;
    margin-top: 8px;
    font-weight: 600;
    min-height: 18px;
}

.caveat {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 16px;
    line-height: 1.7;
    border-top: 1px solid #4a5568;
    padding-top: 14px;
}