body {
    font-family: system-ui, -apple-system, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    background: #f5f5f5;
}

.container {
    background: white;
    padding: 0 15px 15px 15px;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}

h1 {
    color: #333;
    margin-bottom: 20px;
}

h2 {
    color: #555;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 20px;
}

.sticky-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
    padding-top: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.main-input-group {
    display: flex;
    gap: 0;
    margin-bottom: 10px;
}

input {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 0;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

button {
    padding: 10px 20px;
    font-size: 14px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #0056b3;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

button.secondary {
    background: #6c757d;
}

button.secondary:hover {
    background: #5a6268;
}

button.success {
    background: #28a745;
}

button.success:hover {
    background: #218838;
}

.results {
    display: grid;
    gap: 10px;
}

.result-item {
    padding: 10px;
    border-radius: 3px;
    display: flex;
    gap: .5rem;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ddd;
}

.result-item.loading {
    background: #f0f0f0;
    border-color: #ddd;
}

.result-item.available {
    background: #d4edda;
    border-color: #28a745;
}

.result-item.unavailable {
    background: #f8d7da;
    border-color: #dc3545;
}

.result-item.unknown {
    background: #fff3cd;
    border-color: #ffc107;
}

.platform-name {
    font-weight: 600;
    font-size: 14px;
    margin-right: auto;
}

.status {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.status-icon {
    width: 24px;
    height: 24px;
}

.status.available .status-icon {
    color: #28a745;
}

.status.unavailable .status-icon {
    color: #dc3545;
}

.status.unknown .status-icon {
    color: #ffc107;
}

.status.loading {
    background: #6c757d;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
}

.summary {
    margin-top: 15px;
    padding: 10px;
    background: #f0f8ff;
    border-radius: 3px;
    font-size: 14px;
}

.error {
    padding: 15px;
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 5px;
    color: #721c24;
    margin-top: 15px;
}

.definition-box {
    padding: 0;
    margin-top: 10px;
    line-height: 1.6;
}

.definition-box h3 {
    color: #007bff;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 16px;
}

.definition-box h3:first-child {
    margin-top: 0;
}

.definition-box ul,
.definition-box ol {
    margin: 10px 0;
    padding-left: 20px;
}

.definition-box li {
    margin: 5px 0;
}

.definition-box p {
    margin: 10px 0;
}

.definition-box strong {
    color: #333;
}

.language-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.lang-btn {
    padding: 12px 10px;
    font-size: 14px;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover:not(:disabled) {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.lang-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lang-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.similar-words {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.word-btn {
    padding: 8px 15px;
    font-size: 14px;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.word-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,123,255,0.2);
}

.word-btn:active {
    transform: translateY(0);
}

.expiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 12px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.expiry-btn.icon-only {
    display: block;
    width: 2rem;
    height: 2rem;
    padding: 0.25rem;
    box-sizing: border-box;
    border-radius: 50%;
}

.expiry-btn.has-date {
    border-radius: 20px;
    padding: 5px 10px;
}

.expiry-btn:hover {
    background: #5a6268;
}

.expiry-btn:active {
    transform: scale(0.95);
}

.expiry-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.expiry-btn.checking {
    background: #dc3545;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

.expiry-btn.icon-only .btn-icon {
    width: 100%;
    height: 100%;
}

.btn-icon.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.expiry-date {
    margin-left: 10px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
}

.action-buttons-inline {
    display: flex;
    gap: 8px;
    align-items: center;
}

.link-btn {
    display: block;
    width: 2rem;
    height: 2rem;
    padding: 0.25rem;
    box-sizing: border-box;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.2s;
    cursor: pointer;
}

.link-btn:hover {
    background: #0056b3;
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0,123,255,0.3);
}

.link-btn:active {
    transform: scale(0.95);
}

.link-icon {
    width: 100%;
    height: 100%;
}

.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 0;
}

.tab {
    padding: 8px 15px;
    cursor: pointer;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #666;
    font-size: 14px;
    transition: all 0.2s;
}

.tab:hover {
    color: #333;
}

.tab.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.feature-card {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.feature-card h3 {
    color: #007bff;
    margin-bottom: 10px;
    font-size: 18px;
}

.feature-card p {
    color: #666;
    font-size: 14px;
}
