.bng-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.bng-form-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.bng-form-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 600;
}

.bng-form-group {
    margin-bottom: 20px;
}

.bng-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.bng-required {
    color: #d63638;
}

.bng-form-group input[type="text"],
.bng-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.bng-form-group input[type="text"]:focus,
.bng-form-group select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.bng-field-description {
    margin: 5px 0 0;
    font-size: 13px;
    color: #666;
}

#bng-honeypot {
    position: absolute;
    left: -9999px;
}

.bng-button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.bng-button-primary {
    background: #2271b1;
    color: #ffffff;
}

.bng-button-primary:hover {
    background: #135e96;
}

.bng-button-primary:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.bng-button-secondary {
    background: #f0f0f0;
    color: #333;
}

.bng-button-secondary:hover {
    background: #e0e0e0;
}

.bng-results-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.bng-login-gate {
    text-align: center;
    padding: 40px 20px;
}

.bng-login-gate-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    color: #1a1a1a;
}

.bng-login-gate-content p {
    margin-bottom: 25px;
    font-size: 16px;
    color: #666;
}

.bng-login-gate-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.bng-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.bng-results-header h3 {
    margin: 0;
    font-size: 22px;
    color: #1a1a1a;
}

.bng-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #856404;
}

.bng-table-wrapper {
    overflow-x: auto;
}

.bng-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bng-table thead {
    background: #f8f9fa;
}

.bng-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.bng-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.bng-table tbody tr:hover {
    background: #f8f9fa;
}

.bng-name {
    font-weight: 500;
    color: #1a1a1a;
    font-size: 15px;
}

.bng-domain {
    color: #666;
    font-family: monospace;
    font-size: 13px;
}

.bng-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.bng-status-checking {
    background: #e3f2fd;
    color: #1976d2;
}

.bng-status-available {
    background: #e8f5e9;
    color: #2e7d32;
}

.bng-status-taken {
    background: #ffebee;
    color: #c62828;
}

.bng-status-error {
    background: #fff3e0;
    color: #e65100;
}

.bng-registrar-dropdown {
    position: relative;
    display: inline-block;
}

.bng-registrar-button {
    padding: 6px 16px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.bng-registrar-button:hover {
    background: #45a049;
}

.bng-registrar-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
}

.bng-registrar-menu.show {
    display: block;
}

.bng-registrar-link {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}

.bng-registrar-link:last-child {
    border-bottom: none;
}

.bng-registrar-link:hover {
    background: #f8f9fa;
}

.bng-registrar-link.recommended {
    background: #e8f5e9;
    font-weight: 500;
}

.bng-registrar-link.recommended::after {
    content: " ★";
    color: #4caf50;
}

.bng-favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    color: #ccc;
    transition: color 0.2s;
}

.bng-favorite-btn:hover {
    color: #ffc107;
}

.bng-favorite-btn.active {
    color: #ffc107;
}

.bng-loading {
    text-align: center;
    padding: 40px 20px;
}

.bng-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: bng-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes bng-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#bng-loading-text {
    color: #666;
    font-size: 14px;
}

.bng-error {
    background: #ffebee;
    border: 1px solid #ef5350;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
    color: #c62828;
    font-size: 14px;
}

@media (max-width: 768px) {
    .bng-wrapper {
        padding: 15px;
    }

    .bng-form-container,
    .bng-results-container {
        padding: 20px;
    }

    .bng-results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bng-table {
        font-size: 13px;
    }

    .bng-table th,
    .bng-table td {
        padding: 8px;
    }

    .bng-login-gate-actions {
        flex-direction: column;
    }

    .bng-login-gate-actions .bng-button {
        width: 100%;
    }
}
