* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    padding: 2rem;
}

.container {
    max-width: 700px;
    margin: 0 auto;
}

h1 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

#domain-input {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#domain-input:focus {
    outline: none;
    border-color: #4a90d9;
}

#check-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    background: #4a90d9;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#check-btn:hover {
    background: #3a7bc8;
}

#check-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.error {
    background: #fee;
    color: #c33;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.hidden {
    display: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

th {
    background: #4a90d9;
    color: #fff;
    text-align: left;
    padding: 0.7rem 1rem;
    font-weight: 600;
}

td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #eee;
}

tr.available td {
    background: #efffef;
}

tr.available td:nth-child(2) {
    color: #2a7a2a;
    font-weight: 600;
}

tr.unavailable td {
    background: #f9f0f0;
}

tr.unavailable td:nth-child(2) {
    color: #999;
}

tr.queried td:first-child {
    font-weight: 600;
}

td.price {
    font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
    font-size: 0.85rem;
    white-space: nowrap;
}

.riff-btn {
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.riff-btn:hover {
    background: #565e64;
}

.riff-btn:disabled {
    background: #bbb;
    cursor: not-allowed;
}

th:last-child,
td:last-child {
    width: 60px;
    text-align: center;
}

.site-footer {
    max-width: 700px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.85rem;
    color: #777;
    line-height: 1.5;
}

.site-footer p + p {
    margin-top: 0.6rem;
}

.site-footer a {
    color: #4a90d9;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.api-docs {
    margin-top: 0.8rem;
    padding: 1rem;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #555;
}

.api-docs p {
    margin: 0.5rem 0;
}

.api-docs pre {
    background: #2d2d2d;
    color: #e0e0e0;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 0.4rem 0;
}

.api-docs code {
    font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
    font-size: 0.78rem;
    line-height: 1.5;
}

.api-docs p code {
    background: #eee;
    color: #333;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}
